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 -%>
|
||||
19
cookbooks/logrotate/templates/default/logrotate.erb
Normal file
19
cookbooks/logrotate/templates/default/logrotate.erb
Normal file
@@ -0,0 +1,19 @@
|
||||
# This file was generated by Chef for <%= node['fqdn'] %>.
|
||||
# Do not modify this file by hand!
|
||||
|
||||
<%= @path %> {
|
||||
<%- if @frequency %>
|
||||
<%= @frequency %>
|
||||
<%- end %>
|
||||
<%- @configurables.each do |name, value| %>
|
||||
<%= "#{name} #{value}" %>
|
||||
<%- end %>
|
||||
<% @directives.each do |o| -%>
|
||||
<%= o %>
|
||||
<% end -%>
|
||||
<%- @scripts.each do |script_name, script| %>
|
||||
<%= script_name %>
|
||||
<%= script %>
|
||||
endscript
|
||||
<%- end %>
|
||||
}
|
||||
Reference in New Issue
Block a user