projects
/
mirror
/
dsa-puppet.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
this might be more clever
[mirror/dsa-puppet.git]
/
modules
/
munin-node
/
manifests
/
init.pp
diff --git
a/modules/munin-node/manifests/init.pp
b/modules/munin-node/manifests/init.pp
index
7f1c107
..
0fc6d1e
100644
(file)
--- a/
modules/munin-node/manifests/init.pp
+++ b/
modules/munin-node/manifests/init.pp
@@
-1,11
+1,15
@@
+define activate_munin_check($name) {
+ file { "/etc/munin/plugins/$name":
+ ensure => "/usr/share/munin/plugins/$name",
+ notify => Exec["munin-node restart"];
+ }
+}
+
class munin-node {
class munin-node {
- package { munin-node: ensure =>
latest
}
+ package { munin-node: ensure =>
installed
}
file { "/etc/munin/munin-node.conf":
file { "/etc/munin/munin-node.conf":
- owner => root,
- group => root,
- mode => 664,
source => [ "puppet:///munin-node/per-host/$fqdn/munin-node.conf",
"puppet:///munin-node/common/munin-node.conf" ],
require => Package["munin-node"],
source => [ "puppet:///munin-node/per-host/$fqdn/munin-node.conf",
"puppet:///munin-node/common/munin-node.conf" ],
require => Package["munin-node"],
@@
-13,7
+17,7
@@
class munin-node {
}
exec { "munin-node restart":
}
exec { "munin-node restart":
- path => "/etc/init.d
/
",
+ path => "/etc/init.d
:/usr/bin:/usr/sbin:/bin:/sbin
",
refreshonly => true,
}
}
refreshonly => true,
}
}