- if $script {
- $link = $script
- } else {
- $link = $name
- }
-
- $link_target = $ensure ? {
- present => link,
- absent => absent,
- default => fail ( "Unknown ensure value: '$ensure'" ),
- }
-
- file { "/etc/munin/plugins/${name}":
- ensure => $link_target,
- target => "/usr/share/munin/plugins/${link}",
- require => Package['munin-node'],
- notify => Service['munin-node'],
- }
+ file { "/etc/munin/plugins/${name}":
+ ensure => $link_target,
+ target => "/usr/share/munin/plugins/${script}",
+ require => Package['munin-node'],
+ notify => Service['munin-node'],
+ }