diff options
Diffstat (limited to 'manifests/plugin.pp')
-rw-r--r-- | manifests/plugin.pp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/manifests/plugin.pp b/manifests/plugin.pp index cdaa17d..08ac916 100644 --- a/manifests/plugin.pp +++ b/manifests/plugin.pp @@ -8,7 +8,7 @@ define munin::plugin ( $ensure = "present", $script_path_in = '', - $config = '') + $config = '' ) { include munin::plugin::scriptpaths $real_script_path = $script_path_in ? { '' => $munin::plugin::scriptpaths::script_path, default => $script_path_in } @@ -16,6 +16,7 @@ define munin::plugin ( $plugin_src = $ensure ? { "present" => $name, default => $ensure } $plugin = "/etc/munin/plugins/$name" $plugin_conf = "/etc/munin/plugin-conf.d/$name.conf" + case $ensure { "absent": { file { $plugin: ensure => absent, } @@ -62,3 +63,4 @@ define munin::plugin ( } } } + |