summaryrefslogtreecommitdiff
path: root/templates/logrotate.conf.erb
diff options
context:
space:
mode:
authorduritong <peter.meier+github@immerda.ch>2014-01-25 06:22:18 -0800
committerduritong <peter.meier+github@immerda.ch>2014-01-25 06:22:18 -0800
commit21eeb6c772a2e8b362b6917694f169d5b2c7032d (patch)
tree5d851c42f824570900fa5896c50be65fe2d31632 /templates/logrotate.conf.erb
parent09316f8abaa90b816be0c3dae35c86b41959bd2b (diff)
parent151b37a22ee5822101aa316d0c0620ad535c80d1 (diff)
Merge pull request #30 from oxilion/file-cleanup
Clean up files by using templates
Diffstat (limited to 'templates/logrotate.conf.erb')
-rw-r--r--templates/logrotate.conf.erb35
1 files changed, 35 insertions, 0 deletions
diff --git a/templates/logrotate.conf.erb b/templates/logrotate.conf.erb
new file mode 100644
index 0000000..0e3e6ca
--- /dev/null
+++ b/templates/logrotate.conf.erb
@@ -0,0 +1,35 @@
+/var/log/munin/munin-update.log {
+ daily
+ missingok
+ rotate 7
+ compress
+ notifempty
+ create 640 munin adm
+}
+
+/var/log/munin/munin-graph.log {
+ daily
+ missingok
+ rotate 7
+ compress
+ notifempty
+ create 660 munin <%= @apache_user %>
+}
+
+/var/log/munin/munin-html.log {
+ daily
+ missingok
+ rotate 7
+ compress
+ notifempty
+ create 640 munin adm
+}
+
+/var/log/munin/munin-limits.log {
+ daily
+ missingok
+ rotate 7
+ compress
+ notifempty
+ create 640 munin adm
+}