projects
/
mirror
/
dsa-puppet.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e3841f9
)
target is preferred
author
Stephen Gran
<steve@lobefin.net>
Sun, 22 Apr 2012 19:36:46 +0000
(20:36 +0100)
committer
Stephen Gran
<steve@lobefin.net>
Sun, 22 Apr 2012 19:36:46 +0000
(20:36 +0100)
Signed-off-by: Stephen Gran <steve@lobefin.net>
modules/munin/manifests/check.pp
patch
|
blob
|
history
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 ? {
- present =>
"/usr/share/munin/plugins/${link}"
,
+ 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'],
}