-define activate_munin_check($script) {
- file { "/etc/munin/plugins/$script":
- ensure => "/usr/share/munin/plugins/$script",
- notify => Exec["munin-node restart"];
+define activate_munin_check($ensure=present, script=$name) {
+ case $ensure {
+ present: {
+ file { "/etc/munin/plugins/$name":
+ ensure => "/usr/share/munin/plugins/$script",
+ notify => Exec["munin-node restart"];
+ }