From 5abd8f38402f08a3cbb544681ca47ff44e4253e6 Mon Sep 17 00:00:00 2001 From: Micah Anderson Date: Tue, 22 Dec 2009 20:49:00 -0500 Subject: move the munin-kill cronjob into the centos-specific case. this is not something debian needs AFAICT --- manifests/host.pp | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) (limited to 'manifests') diff --git a/manifests/host.pp b/manifests/host.pp index 9fd637d..fd70710 100644 --- a/manifests/host.pp +++ b/manifests/host.pp @@ -32,14 +32,15 @@ class munin::host inherits munin include munin::plugins::muninhost case $operatingsystem { - centos: { include munin::host::cgi } + centos: { + include munin::host::cgi + # from time to time we cleanup hanging munin-runs + file{'/etc/cron.d/munin_kill': + content => "4,34 * * * * root if $(ps ax | grep -v grep | grep -q munin-run); then killall munin-run; fi\n", + owner => root, group => 0, mode => 0644; + } + } } - - # from time to time we cleanup hanging munin-runs - file{'/etc/cron.d/munin_kill': - content => "4,34 * * * * root if $(ps ax | grep -v grep | grep -q munin-run); then killall munin-run; fi\n", - owner => root, group => 0, mode => 0644; - } if $use_shorewall { include shorewall::rules::out::munin } -- cgit v1.2.3