munin-node only on debian/etc...
authorandreas <andreas@immerda.ch>
Tue, 4 Dec 2007 16:51:56 +0000 (16:51 +0000)
committerandreas <andreas@immerda.ch>
Tue, 4 Dec 2007 16:51:56 +0000 (16:51 +0000)
manifests/plugin.pp

index c107f41..81d8ed4 100644 (file)
@@ -16,12 +16,16 @@ define munin::plugin (
                        file { $plugin: ensure => absent, } 
                }
                default: {
                        file { $plugin: ensure => absent, } 
                }
                default: {
-                       $plugin_src = $ensure ? { "present" => $name, default => $ensure }
-                       debug ( "munin_plugin: making $plugin using src: $plugin_src" )
-                       file { $plugin:
-                               ensure => "$script_path/${plugin_src}",
-                               require => Package["munin-node"],
-                               notify => Service["munin-node"],
+                       case $operatingsystem {
+                               debian: {       
+                                       $plugin_src = $ensure ? { "present" => $name, default => $ensure }
+                                       debug ( "munin_plugin: making $plugin using src: $plugin_src" )
+                                       file { $plugin:
+                                               ensure => "$script_path/${plugin_src}",
+                                               require => Package["munin-node"],
+                                               notify => Service["munin-node"],
+                               }
+                               }
                        }
                }
        }
                        }
                }
        }