summaryrefslogtreecommitdiff
path: root/manifests
diff options
context:
space:
mode:
authorMarcel Haerry <haerry@puzzle.ch>2008-04-22 20:00:47 +0200
committerMarcel Haerry <haerry@puzzle.ch>2008-04-22 20:00:47 +0200
commit414020e7c349ec509eced5a12c54d9abd5dc5812 (patch)
treeb11d5d58a8af131dcfadf7caf50773adc84cb5b3 /manifests
parent175ca7bf6dfa4a410e0cca920164b90c64a15d6b (diff)
fixed plugin source with relative plugins
Diffstat (limited to 'manifests')
-rw-r--r--manifests/plugin.pp3
1 files changed, 2 insertions, 1 deletions
diff --git a/manifests/plugin.pp b/manifests/plugin.pp
index ec025f5..a2f8231 100644
--- a/manifests/plugin.pp
+++ b/manifests/plugin.pp
@@ -93,8 +93,9 @@ define munin::remoteplugin($ensure = "present", $source, $config = '') {
}
}
define munin::plugin::deploy ($source = '', $ensure = 'present', $config = '') {
+ $plugin_src = $ensure ? { "present" => $name, default => $ensure }
$real_source = $source ? {
- '' => "munin/plugins/$name",
+ '' => "munin/plugins/$plugin_src",
default => $source
}
include munin::plugin::scriptpaths