summaryrefslogtreecommitdiff
path: root/manifests/host.pp
diff options
context:
space:
mode:
authormh <mh@immerda.ch>2014-09-13 05:16:18 +0200
committermh <mh@immerda.ch>2014-09-13 05:16:18 +0200
commitec4e2ba4f6f90116927ead35fca8c525a64a9e57 (patch)
treeceb5f922aa89f92666c4086e71febab6a122b980 /manifests/host.pp
parent39eb7ac31ad7f1fc16c37c42823fb1860c1f09ba (diff)
parentee32ce830d98b38f68293a648ca7dd83fde14422 (diff)
Merge remote-tracking branch 'github/master'
Diffstat (limited to 'manifests/host.pp')
-rw-r--r--manifests/host.pp11
1 files changed, 5 insertions, 6 deletions
diff --git a/manifests/host.pp b/manifests/host.pp
index 55e28bf..0e5fb01 100644
--- a/manifests/host.pp
+++ b/manifests/host.pp
@@ -8,7 +8,6 @@ class munin::host(
$export_tag = 'munin'
) {
package {'munin': ensure => installed, }
- include concat::setup
Concat::Fragment <<| tag == $export_tag |>>
@@ -39,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
}