projects
/
mirror
/
dsa-puppet.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
munin-node: remove df-wrap
[mirror/dsa-puppet.git]
/
modules
/
munin
/
manifests
/
check.pp
diff --git
a/modules/munin/manifests/check.pp
b/modules/munin/manifests/check.pp
index
ee88ca0
..
b122385
100644
(file)
--- a/
modules/munin/manifests/check.pp
+++ b/
modules/munin/manifests/check.pp
@@
-1,5
+1,7
@@
define munin::check($ensure = present, $script = undef) {
define munin::check($ensure = present, $script = undef) {
+ include munin
+
if $script {
$link = $script
} else {
if $script {
$link = $script
} else {
@@
-7,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'],
}