From: Stephen Gran Date: Fri, 16 Oct 2009 21:44:48 +0000 (+0100) Subject: we can shorten that X-Git-Url: https://git.adam-barratt.org.uk/?a=commitdiff_plain;h=60c95d3cf9b2dd19ad03897241ccfc4bf3087f8d;hp=e18617417351f810e435ec574e3d4b572b24e8a2;p=mirror%2Fdsa-puppet.git we can shorten that Signed-off-by: Stephen Gran --- diff --git a/modules/munin-node/manifests/apache.pp b/modules/munin-node/manifests/apache.pp index d23bdb159..f554c1604 100644 --- a/modules/munin-node/manifests/apache.pp +++ b/modules/munin-node/manifests/apache.pp @@ -1,8 +1,8 @@ class munin-node::apache inherits munin-node { activate_munin_check { - "apache_accesses": name => "apache_accesses"; - "apache_processes": name => "apache_processes"; - "apache_volume": name => "apache_volume"; + "apache_accesses":; + "apache_processes":; + "apache_volume":; } } diff --git a/modules/munin-node/manifests/init.pp b/modules/munin-node/manifests/init.pp index 0fc6d1e41..523d6b972 100644 --- a/modules/munin-node/manifests/init.pp +++ b/modules/munin-node/manifests/init.pp @@ -1,4 +1,4 @@ -define activate_munin_check($name) { +define activate_munin_check() { file { "/etc/munin/plugins/$name": ensure => "/usr/share/munin/plugins/$name", notify => Exec["munin-node restart"];