diff options
author | Jasper Lievisse Adriaanse <jasper@humppa.nl> | 2014-08-13 10:40:45 +0200 |
---|---|---|
committer | Jasper Lievisse Adriaanse <jasper@humppa.nl> | 2014-08-13 10:40:45 +0200 |
commit | c39907a4b3acb1413a290b78b3dd3b49b898e210 (patch) | |
tree | 16c8fc74886f66c7abbea028e19566c93674b33b /manifests | |
parent | 8bdbe524904ce078c0c76e69fab7bf437ceeca18 (diff) |
Use cron resource instead of a cron.d file
Diffstat (limited to 'manifests')
-rw-r--r-- | manifests/host.pp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/manifests/host.pp b/manifests/host.pp index e666c3d..f231691 100644 --- a/manifests/host.pp +++ b/manifests/host.pp @@ -39,12 +39,12 @@ class munin::host( } # 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', + cron { 'munin_kill': + command => 'if $(ps ax | grep -v grep | grep -q munin-run); then killall munin-run; fi', + minute => ['4', '34'], + user => 'root', } + if $munin::host::manage_shorewall { include shorewall::rules::out::munin } |