summaryrefslogtreecommitdiff
path: root/manifests
diff options
context:
space:
mode:
authorJasper Lievisse Adriaanse <jasper@humppa.nl>2014-08-13 10:40:45 +0200
committerJasper Lievisse Adriaanse <jasper@humppa.nl>2014-08-13 10:40:45 +0200
commitc39907a4b3acb1413a290b78b3dd3b49b898e210 (patch)
tree16c8fc74886f66c7abbea028e19566c93674b33b /manifests
parent8bdbe524904ce078c0c76e69fab7bf437ceeca18 (diff)
Use cron resource instead of a cron.d file
Diffstat (limited to 'manifests')
-rw-r--r--manifests/host.pp10
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
}