projects
/
mirror
/
dsa-puppet.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
ferm: open ssh from mirror-master to ports mirror
[mirror/dsa-puppet.git]
/
modules
/
munin
/
manifests
/
check.pp
diff --git
a/modules/munin/manifests/check.pp
b/modules/munin/manifests/check.pp
index
d807861
..
b122385
100644
(file)
--- a/
modules/munin/manifests/check.pp
+++ b/
modules/munin/manifests/check.pp
@@
-9,13
+9,14
@@
define munin::check($ensure = present, $script = undef) {
}
$link_target = $ensure ? {
}
$link_target = $ensure ? {
- present =>
"/usr/share/munin/plugins/${link}"
,
+ present =>
link
,
absent => absent,
absent => absent,
- default =>
err
( "Unknown ensure value: '$ensure'" ),
+ default =>
fail
( "Unknown ensure value: '$ensure'" ),
}
file { "/etc/munin/plugins/${name}":
ensure => $link_target,
}
file { "/etc/munin/plugins/${name}":
ensure => $link_target,
+ target => "/usr/share/munin/plugins/${link}",
require => Package['munin-node'],
notify => Service['munin-node'],
}
require => Package['munin-node'],
notify => Service['munin-node'],
}