summaryrefslogtreecommitdiff
path: root/manifests
diff options
context:
space:
mode:
authormh <mh@immerda.ch>2012-12-07 12:56:28 +0100
committermh <mh@immerda.ch>2012-12-07 12:56:52 +0100
commit56c15eb79702694ecd0a413958c2e5498a794f0a (patch)
treed52c89d1131c74f85793c3748cb61608cff4286d /manifests
parent26c67fe5ebf4c993f796d1b5de50015dfbb3bca8 (diff)
improve puppet munin plugin
Diffstat (limited to 'manifests')
-rw-r--r--manifests/master/munin.pp17
1 files changed, 10 insertions, 7 deletions
diff --git a/manifests/master/munin.pp b/manifests/master/munin.pp
index b455240..ca6fddc 100644
--- a/manifests/master/munin.pp
+++ b/manifests/master/munin.pp
@@ -1,10 +1,13 @@
+# deploy puppet munin plugin
class puppet::master::munin {
-
- munin::plugin::deploy {
- [ 'puppetmaster_memory', 'puppet_clients' ]:
- source => "puppet/munin/puppet_",
- config => "user root
-env.puppet_logfile /var/log/puppet/puppetmaster.log"
+ munin::plugin::deploy{'puppet_':
+ ensure => absent,
+ source => 'puppet/munin/puppet_';
+ }
+ munin::plugin{
+ ['puppet_clients','puppet_mem']:
+ ensure => 'puppet_',
+ require => Munin::Plugin::Deploy['puppet_'],
+ config => 'user root';
}
-
}