summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormh <mh@immerda.ch>2012-06-18 15:40:22 -0300
committermh <mh@immerda.ch>2012-06-18 15:40:22 -0300
commit1ca3978ff3094c01a56feaee6c37fc82e3224d15 (patch)
treea34978a215d6dc9729b083eb7ca3f491d6e6feb4
parentc95f0b2fcf4f35b1a7ae3ad9c04600a32ab2bb43 (diff)
if it's * it should be collected by fqdn otherwise directly by what is given to be listened on
-rw-r--r--manifests/client/base.pp5
1 files changed, 4 insertions, 1 deletions
diff --git a/manifests/client/base.pp b/manifests/client/base.pp
index 1cba47b..84ba9b2 100644
--- a/manifests/client/base.pp
+++ b/manifests/client/base.pp
@@ -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'],
}