summaryrefslogtreecommitdiff
path: root/manifests/plugin.pp
diff options
context:
space:
mode:
authormh <mh@d66ca3ae-40d7-4aa7-90d4-87d79ca94279>2008-05-11 13:22:49 +0000
committermh <mh@d66ca3ae-40d7-4aa7-90d4-87d79ca94279>2008-05-11 13:22:49 +0000
commitc2565e972ccd7159001984e6cb351bc30a81eb51 (patch)
tree1a33e9e6c4af64ba0442151bae962e444de88225 /manifests/plugin.pp
parenta043afef5e8fb14385f59b4fee558f7f9618b050 (diff)
fixed absent pluginsource
git-svn-id: https://svn/ipuppet/trunk/modules/munin@1426 d66ca3ae-40d7-4aa7-90d4-87d79ca94279
Diffstat (limited to 'manifests/plugin.pp')
-rw-r--r--manifests/plugin.pp6
1 files changed, 5 insertions, 1 deletions
diff --git a/manifests/plugin.pp b/manifests/plugin.pp
index 6a92c56..91b0178 100644
--- a/manifests/plugin.pp
+++ b/manifests/plugin.pp
@@ -93,7 +93,11 @@ define munin::remoteplugin($ensure = "present", $source, $config = '') {
}
}
define munin::plugin::deploy ($source = '', $ensure = 'present', $config = '') {
- $plugin_src = $ensure ? { "present" => $name, default => $ensure }
+ $plugin_src = $ensure ? {
+ 'present' => $name,
+ 'absent' => $name,
+ default => $ensure
+ }
$real_source = $source ? {
'' => "munin/plugins/$plugin_src",
default => $source