diff options
-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 |