added munin logfile cleanup cron
authormh <mh@immerda.ch>
Mon, 2 Mar 2009 22:55:10 +0000 (22:55 +0000)
committermh <mh@immerda.ch>
Mon, 2 Mar 2009 22:55:10 +0000 (22:55 +0000)
manifests/client.pp

index db5587f..c59369b 100644 (file)
@@ -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 {