X-Git-Url: https://git.openstreetmap.org/chef.git/blobdiff_plain/658ae403e25fd4aa75e335579367952686ca5a18..86edbbca8af9903fca18dbb20a6ea2ca62e7d97c:/cookbooks/taginfo/templates/default/logrotate.erb?ds=sidebyside diff --git a/cookbooks/taginfo/templates/default/logrotate.erb b/cookbooks/taginfo/templates/default/logrotate.erb new file mode 100644 index 000000000..bf6f4a842 --- /dev/null +++ b/cookbooks/taginfo/templates/default/logrotate.erb @@ -0,0 +1,14 @@ +# DO NOT EDIT - This file is being maintained by Chef +<% node[:taginfo][:sites].each do |site| -%> + +/var/log/taginfo/<%= site[:name] %>/*.log { + daily + missingok + rotate 0 + dateext + dateformat %Y-%m-%d + maxage 28 + compress + delaycompress +} +<% end -%>