diff options
author | Marcel Haerry <haerry@puzzle.ch> | 2008-04-22 20:00:47 +0200 |
---|---|---|
committer | Marcel Haerry <haerry@puzzle.ch> | 2008-04-22 20:00:47 +0200 |
commit | 414020e7c349ec509eced5a12c54d9abd5dc5812 (patch) | |
tree | b11d5d58a8af131dcfadf7caf50773adc84cb5b3 | |
parent | 175ca7bf6dfa4a410e0cca920164b90c64a15d6b (diff) |
fixed plugin source with relative plugins
-rw-r--r-- | manifests/plugin.pp | 3 |
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 |