summaryrefslogtreecommitdiff
path: root/manifests/plugin.pp
diff options
context:
space:
mode:
authormh <mh@immerda.ch>2008-05-11 13:22:49 +0000
committermh <mh@immerda.ch>2008-05-11 13:22:49 +0000
commitaaef921ce2aae19356104872482219117288043f (patch)
tree1a33e9e6c4af64ba0442151bae962e444de88225 /manifests/plugin.pp
parentd1c04771e56a63d5c91cac2c8b0aa9bbdbbcffa6 (diff)
fixed absent pluginsource
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