# This file was generated by Chef for <%= node['fqdn'] %>.
# Do not modify this file by hand!

<% @configuration.directives.each do |d| -%>
<%= d %>
<% end -%>

<% @configuration.values.each do |k, v| -%>
<%= k %> <%= v %>
<% end -%>

include /etc/logrotate.d

<% @configuration.paths.each do |path, path_config| -%>
<%= path %> {
    <% path_config['directives'].each do |d|-%>
    <%= d %>
    <% end -%>
    <% path_config['values'].each do | k, v | -%>
    <%= k %> <%= v %>
    <% end -%>
    <% path_config['scripts'].each do | scripttype, body | -%>
    <%= scripttype %>
    <%= body %>
    endscript
    <% end -%>
}

<% end -%>
