chef/cookbooks/logrotate/templates/default/logrotate-global.erb
Greg Karékinian a32f34b408 Vendor the external cookbooks
Knife-Zero doesn't include Berkshelf support, so vendoring everything in
the repo is convenient again
2019-10-13 19:17:42 +02:00

36 lines
749 B
Plaintext

# 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 -%>
<% @configuration.scripts.each do | scripttype, body | -%>
<%= scripttype %>
<%= body %>
endscript
<% 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 -%>