summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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'],
}