1 define munin::check($ensure = present, $script = undef) {
11 $link_target = $ensure ? {
14 default => fail ( "Unknown ensure value: '$ensure'" ),
17 file { "/etc/munin/plugins/${name}":
18 ensure => $link_target,
19 target => "/usr/share/munin/plugins/${link}",
20 require => Package['munin-node'],
21 notify => Service['munin-node'],