scheint einigermassen ne lösung zu sein ... ausser dem was er dann nicht macht ...
authoram <am@d66ca3ae-40d7-4aa7-90d4-87d79ca94279>
Fri, 7 Dec 2007 12:27:50 +0000 (12:27 +0000)
committeram <am@d66ca3ae-40d7-4aa7-90d4-87d79ca94279>
Fri, 7 Dec 2007 12:27:50 +0000 (12:27 +0000)
git-svn-id: https://rfd.cronopios.org/ipuppet/trunk/modules/munin@217 d66ca3ae-40d7-4aa7-90d4-87d79ca94279

manifests/plugin.pp

index 971f076..1e5a78f 100644 (file)
@@ -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];
+                   }
                }
 }