summaryrefslogtreecommitdiff
path: root/manifests
diff options
context:
space:
mode:
authoram <am@d66ca3ae-40d7-4aa7-90d4-87d79ca94279>2007-12-07 12:27:50 +0000
committeram <am@d66ca3ae-40d7-4aa7-90d4-87d79ca94279>2007-12-07 12:27:50 +0000
commit1b30f55f5ae7ea19d80e59672b95b63ba647de62 (patch)
treebc0c6ee3be0e5fcbf71a1186e7ce57d29ac59a61 /manifests
parent6b05503cb59df561423995787a8f31b3ea75b5e8 (diff)
scheint einigermassen ne lösung zu sein ... ausser dem was er dann nicht macht ...
git-svn-id: https://svn/ipuppet/trunk/modules/munin@217 d66ca3ae-40d7-4aa7-90d4-87d79ca94279
Diffstat (limited to 'manifests')
-rw-r--r--manifests/plugin.pp17
1 files changed, 16 insertions, 1 deletions
diff --git a/manifests/plugin.pp b/manifests/plugin.pp
index 971f076..1e5a78f 100644
--- a/manifests/plugin.pp
+++ b/manifests/plugin.pp
@@ -116,7 +116,21 @@ class munin::plugins::base {
$munin_node_package = "munin-node"
}
}
- file {
+ case $operatingsystem {
+ centos: {
+ file {
+ [ "/etc/munin/plugins", "/etc/munin/plugin-conf.d" ]:
+ source => "puppet://$servername/munin/empty",
+ ensure => directory, checksum => mtime,
+ recurse => true, purge => true, force => true,
+ mode => 0755, owner => root, group => root;
+ "/etc/munin/plugin-conf.d/munin-node":
+ ensure => present,
+ mode => 0644, owner => root, group => root;
+ }
+ }
+ default: {
+ file {
[ "/etc/munin/plugins", "/etc/munin/plugin-conf.d" ]:
source => "puppet://$servername/munin/empty",
ensure => directory, checksum => mtime,
@@ -127,6 +141,7 @@ class munin::plugins::base {
ensure => present,
mode => 0644, owner => root, group => root,
notify => Service[$munin_node_service];
+ }
}
}