fixed typo
[puppet_munin.git] / manifests / client.pp
index d0f793e..dbf175a 100644 (file)
@@ -39,9 +39,6 @@ class munin::client {
                                guest: { include munin::plugins::vserver }
                                default: {
                                        include munin::plugins::linux
-                                       case $virtual {
-                                               xen0: { include munin::plugins::dom0 }
-                                       }
                                }
                        }
                }
@@ -49,6 +46,11 @@ class munin::client {
                        err( "Don't know which munin plugins to install for $kernel" )
                }
        }
+       case $virtual {
+        physical: { include munin::plugins::physical }
+           xen0: { include munin::plugins::dom0 }
+        xenu: { include munin::plugins::domU }
+    }
 
 }
 
@@ -100,9 +102,9 @@ class munin::client::darwin
 
 class munin::client::debian 
 {
-    $script_path_default =  "/usr/share/munin/plugins"
-
        package { "munin-node": ensure => installed }
+    # the plugin will need that
+       package { "iproute": ensure => installed }
 
        file {
                "/etc/munin/":
@@ -131,10 +133,9 @@ class munin::client::debian
 
 class munin::client::gentoo 
 {
-    $script_path_default =  "/usr/libexec/munin/plugins"
     $acpi_available = "absent"
-    package { 'munin':
-                alias => 'munin-node',
+    package { 'munin-node':
+                name => 'munin',
                 ensure => present,
                 category => $operatingsystem ? {
                         gentoo => 'net-analyzer',
@@ -142,15 +143,6 @@ class munin::client::gentoo
                 },
     }
 
-    # link
-    # mh: really needed?
-#    file{
-#        "/etc/init.d/munin":
-#            ensure => "/etc/init.d/munin-node",
-#    }
-
-
-
        file {
                "/etc/munin/":
                        ensure => directory,
@@ -164,7 +156,7 @@ class munin::client::gentoo
            #           notify => Service["munin"],
        }
 
-       service { "munin":
+       service { "munin-node":
                ensure => running, 
        }
 
@@ -173,7 +165,6 @@ class munin::client::gentoo
 
 class munin::client::centos 
 {
-    $script_path_default =  "/usr/share/munin/plugins"
     package { 'munin-node':
                 ensure => present,
     }
@@ -189,7 +180,7 @@ class munin::client::centos
                        # this has to be installed before the package, so the postinst can
                        # boot the munin-node without failure!
                        before => Package["munin-node"],
-                       notify => Service["munin"],
+                       notify => Service["munin-node"],
        }
 
        service { "munin-node":