munin-node only on debian/etc...
[puppet_munin.git] / manifests / plugin.pp
index c107f41..81d8ed4 100644 (file)
@@ -16,12 +16,16 @@ define munin::plugin (
                        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"],
+                               }
+                               }
                        }
                }
        }