Vendor the external cookbooks
Knife-Zero doesn't include Berkshelf support, so vendoring everything in the repo is convenient again
This commit is contained in:
35
cookbooks/logrotate/templates/default/logrotate-global.erb
Normal file
35
cookbooks/logrotate/templates/default/logrotate-global.erb
Normal file
@@ -0,0 +1,35 @@
|
||||
# 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 -%>
|
||||
Reference in New Issue
Block a user