projects
/
mirror
/
dsa-puppet.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
try to order these a bit
[mirror/dsa-puppet.git]
/
modules
/
munin
/
manifests
/
check.pp
diff --git
a/modules/munin/manifests/check.pp
b/modules/munin/manifests/check.pp
index
ace6bb5
..
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,
default => fail ( "Unknown ensure value: '$ensure'" ),
}
file { "/etc/munin/plugins/${name}":
ensure => $link_target,
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'],
}
require => Package['munin-node'],
notify => Service['munin-node'],
}