From 3190c464bc2e27816da4c90d6e212fb9e2a09d0e Mon Sep 17 00:00:00 2001 From: Tom Hughes Date: Sat, 28 Sep 2013 10:28:03 +0100 Subject: [PATCH] Don't generate bogus address configurations for munin --- cookbooks/munin/templates/default/munin.conf.erb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cookbooks/munin/templates/default/munin.conf.erb b/cookbooks/munin/templates/default/munin.conf.erb index 9bceccd25..f204de2a0 100644 --- a/cookbooks/munin/templates/default/munin.conf.erb +++ b/cookbooks/munin/templates/default/munin.conf.erb @@ -20,7 +20,7 @@ unknown_limit 144 address <%= client.internal_ipaddress %> <% elsif client[:networking][:roles][:external][:zone] == "ic" -%> address <%= client.internal_ipaddress || client.external_ipaddress %> -<% else -%> +<% elsif client.external_ipaddress -%> address <%= client.external_ipaddress %> <% end -%> use_node_name yes -- 2.39.5