diff options
author | mh <mh@immerda.ch> | 2010-07-15 20:41:39 +0200 |
---|---|---|
committer | mh <mh@immerda.ch> | 2010-07-15 20:41:39 +0200 |
commit | dab730ed6b0667d4356c0e8e21e37719ea977a93 (patch) | |
tree | a00789980ad6bb8cbf27bf41c31de8c88dfb9171 /manifests/plugin.pp | |
parent | e7d23dabf191c5416197af0b229fc90b94539405 (diff) |
fixing weird class setup
we had some weird class setup which caused some problems on 2.6
(see puppet bug #4242 for more info). This commit cleans that
weird setup up and decouples a lot of things.
Diffstat (limited to 'manifests/plugin.pp')
-rw-r--r-- | manifests/plugin.pp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/manifests/plugin.pp b/manifests/plugin.pp index cdaa17d..52c77c2 100644 --- a/manifests/plugin.pp +++ b/manifests/plugin.pp @@ -16,6 +16,8 @@ define munin::plugin ( $plugin_src = $ensure ? { "present" => $name, default => $ensure } $plugin = "/etc/munin/plugins/$name" $plugin_conf = "/etc/munin/plugin-conf.d/$name.conf" + + include munin::plugins::setup case $ensure { "absent": { file { $plugin: ensure => absent, } |