summaryrefslogtreecommitdiff
path: root/manifests/host.pp
diff options
context:
space:
mode:
authorduritong <peter.meier+github@immerda.ch>2014-09-13 05:12:28 +0200
committerduritong <peter.meier+github@immerda.ch>2014-09-13 05:12:28 +0200
commitee32ce830d98b38f68293a648ca7dd83fde14422 (patch)
tree90de40c1623a099e683d5ab299e8e3e2571794fe /manifests/host.pp
parent0c84240d96dfec32926c26d61f53195790e373ea (diff)
parentc39907a4b3acb1413a290b78b3dd3b49b898e210 (diff)
Merge pull request #45 from jasperla/cron
Use cron resource instead of a cron.d file
Diffstat (limited to 'manifests/host.pp')
-rw-r--r--manifests/host.pp10
1 files changed, 5 insertions, 5 deletions
diff --git a/manifests/host.pp b/manifests/host.pp
index 70d7116..78f6c83 100644
--- a/manifests/host.pp
+++ b/manifests/host.pp
@@ -38,12 +38,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
}