summaryrefslogtreecommitdiff
path: root/manifests/client.pp
diff options
context:
space:
mode:
authormh <mh@immerda.ch>2009-03-02 22:55:10 +0000
committermh <mh@immerda.ch>2009-03-02 22:55:10 +0000
commit955947ce7db6d7f6a1a3b3ac53ca0932b28d1dac (patch)
tree6aba69f297bbb96dc101567671362eacf1dc8965 /manifests/client.pp
parent97af5ac10fb99b97a971c101732af7de681bcd57 (diff)
added munin logfile cleanup cron
Diffstat (limited to 'manifests/client.pp')
-rw-r--r--manifests/client.pp7
1 files changed, 7 insertions, 0 deletions
diff --git a/manifests/client.pp b/manifests/client.pp
index db5587f..c59369b 100644
--- a/manifests/client.pp
+++ b/manifests/client.pp
@@ -106,6 +106,13 @@ class munin::client::openbsd inherits munin::client::base {
hasrestart => false,
require => [ File['/var/run/munin'], File['/var/log/munin'] ],
}
+
+ cron{'clean_munin_logfile':
+ command => 'rm /var/log/munin/munin-node.log; kill -HUP `cat /var/run/munin/munin-node.pid`',
+ minute => 0,
+ hour => 2,
+ weekday => 0,
+ }
}
class munin::client::darwin {