]> git.openstreetmap.org Git - chef.git/blobdiff - cookbooks/taginfo/templates/default/logrotate.erb
More work on taginfo
[chef.git] / cookbooks / taginfo / templates / default / logrotate.erb
diff --git a/cookbooks/taginfo/templates/default/logrotate.erb b/cookbooks/taginfo/templates/default/logrotate.erb
new file mode 100644 (file)
index 0000000..bf6f4a8
--- /dev/null
@@ -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 -%>