case durfte dort nicht stehen
authorandreas <andreas@immerda.ch>
Fri, 7 Dec 2007 12:19:20 +0000 (12:19 +0000)
committerandreas <andreas@immerda.ch>
Fri, 7 Dec 2007 12:19:20 +0000 (12:19 +0000)
manifests/plugin.pp

index 5649b29..971f076 100644 (file)
@@ -38,15 +38,18 @@ define munin::plugin (
                }
                default: {
                        debug ( "munin_plugin: making $plugin using src: $plugin_src" )
-                       file { $plugin:
-                               ensure => "$script_path/${plugin_src}",
-                               require => Package[$munin_node_package],
-                               case $operatingsystem {
-                                       centos: {       
-                                               # do nothing
+                       case $operatingsystem {
+                               centos: {       
+                                       file { $plugin:
+                                               ensure => "$script_path/${plugin_src}",
+                                               require => Package[$munin_node_package];
                                        }
-                                       default: {
-                                               notify => Service[$munin_node_service],
+                               }
+                               default: {
+                                       file { $plugin:
+                                               ensure => "$script_path/${plugin_src}",
+                                               require => Package[$munin_node_package],
+                                               notify => Service[$munin_node_service];
                                        }
                                }
                        }