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:
5cd06b5
)
stupid puppet failing to take default values
author
Stephen Gran
<steve@lobefin.net>
Sat, 17 Oct 2009 16:04:32 +0000
(17:04 +0100)
committer
Stephen Gran
<steve@lobefin.net>
Sat, 17 Oct 2009 16:04:32 +0000
(17:04 +0100)
Signed-off-by: Stephen Gran <steve@lobefin.net>
modules/munin-node/manifests/init.pp
patch
|
blob
|
history
diff --git
a/modules/munin-node/manifests/init.pp
b/modules/munin-node/manifests/init.pp
index
9035878
..
587f157
100644
(file)
--- a/
modules/munin-node/manifests/init.pp
+++ b/
modules/munin-node/manifests/init.pp
@@
-1,8
+1,13
@@
define activate_munin_check($ensure=present, script=$name) {
+ case $script {
+ "": { $base = $name }
+ default: { $base = $script }
+ }
+
case $ensure {
present: {
file { "/etc/munin/plugins/$name":
- ensure => "/usr/share/munin/plugins/$
script
",
+ ensure => "/usr/share/munin/plugins/$
base
",
notify => Exec["munin-node restart"];
}
}