if it's * it should be collected by fqdn otherwise directly by what is given to be...
authormh <mh@immerda.ch>
Mon, 18 Jun 2012 18:40:22 +0000 (15:40 -0300)
committermh <mh@immerda.ch>
Mon, 18 Jun 2012 18:40:22 +0000 (15:40 -0300)
manifests/client/base.pp

index 1cba47b..84ba9b2 100644 (file)
@@ -15,7 +15,10 @@ class munin::client::base {
     mode => 0644, owner => root, group => 0,
   }
   munin::register { $::fqdn:
-    host => $munin::client::host,
+    host => $munin::client::host ? {
+      '*' => $::fqdn,
+      default => $munin::client::host
+    },
     port => $munin::client::port,
     config => [ 'use_node_name yes', 'load.load.warning 5', 'load.load.critical 10'],
   }