From d6bea8c3d5df1a6dc5763a26e76b76807879342b Mon Sep 17 00:00:00 2001 From: Tom Hughes Date: Wed, 25 Jun 2014 11:07:21 +0100 Subject: [PATCH] Fix munin for UCL nodes with no internal address --- 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 f204de2a0..4926a07f9 100644 --- a/cookbooks/munin/templates/default/munin.conf.erb +++ b/cookbooks/munin/templates/default/munin.conf.erb @@ -17,7 +17,7 @@ unknown_limit 144 update no <% end -%> <% if client[:networking][:roles][:external][:zone] == "ucl" -%> - address <%= client.internal_ipaddress %> + address <%= client.internal_ipaddress || client.external_ipaddress %> <% elsif client[:networking][:roles][:external][:zone] == "ic" -%> address <%= client.internal_ipaddress || client.external_ipaddress %> <% elsif client.external_ipaddress -%> -- 2.43.2