### File managed with puppet ###
<% if scope.lookupvar('::servername') -%>
# Served by:        '<%= scope.lookupvar('::servername') %>'
<% end -%>
# Module:           '<%= @module_name %>'
# Template source:  'MODULES<%= template_source.gsub(Regexp.new("^#{Puppet::Node::Environment.current[:modulepath].gsub(':','|')}"),"") %>'

<%= scope.function_always_array([@_mask]).join(' ') %> {
<% scope.function_always_array([@options]).each do |opt| -%>
  <%= opt %>
<% end -%>

  postrotate
    <%= @reload_command %>
  endscript

}

### File managed with puppet ###
<% if scope.lookupvar('::servername') -%>
# Served by:        '<%= scope.lookupvar('::servername') %>'
<% end -%>
# Module:           '<%= @module_name %>'
# Template source:  'MODULES<%= template_source.gsub(Regexp.new("^#{Puppet::Node::Environment.current[:modulepath].gsub(':','|')}"),"") %>'

<%= scope.function_always_array([@_mask]).join(' ') %> {
<% scope.function_always_array([@options]).each do |opt| -%>
  <%= opt %>
<% end -%>

<% if @reload_command -%>
  postrotate
    <%= @reload_command %>
    endscript
<% end -%>

}

Make reload command optional in logrotate template
Make reload command optional in logrotate template
