1 # enable (or disable) a munin check
2 # @param ensure check enabled/disabled
3 # @param script check to synclink
5 Enum['present','absent'] $ensure = 'present',
10 $link_target = $ensure ? {
15 file { "/etc/munin/plugins/${name}":
16 ensure => $link_target,
17 target => "/usr/share/munin/plugins/${script}",
18 require => Package['munin-node'],
19 notify => Service['munin-node'],