summaryrefslogtreecommitdiff
path: root/templates/munin-node.conf.erb
diff options
context:
space:
mode:
authorantonio <me.verni@gmail.com>2014-04-09 15:45:37 +0200
committerantonio <me.verni@gmail.com>2014-04-09 15:59:42 +0200
commitd09774c635ea72932727d6724ee847942ddafb77 (patch)
tree9f2a02b9e689cfc94da196ab43f6a514b86a4376 /templates/munin-node.conf.erb
parentbcf24d2783aae46d2f4ebe506c017e7b26bdfac8 (diff)
Configurable host_name variable
Diffstat (limited to 'templates/munin-node.conf.erb')
-rw-r--r--templates/munin-node.conf.erb4
1 files changed, 4 insertions, 0 deletions
diff --git a/templates/munin-node.conf.erb b/templates/munin-node.conf.erb
index 4448002..891203c 100644
--- a/templates/munin-node.conf.erb
+++ b/templates/munin-node.conf.erb
@@ -34,7 +34,11 @@ ignore_file \.pod$
# Set this if the client doesn't report the correct hostname when
# telnetting to localhost, port 4949
#
+<% if scope.lookupvar('munin::client::host_name') == '::fqdn' -%>
host_name <%= scope.lookupvar('::fqdn') %>
+<% else -%>
+host_name <%= scope.lookupvar('munin::client::host_name') %>
+<% end -%>
# A list of addresses that are allowed to connect. This must be a
# regular expression, since Net::Server does not understand CIDR-style