X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/956628583e0c73dc82b457cd83cbc5013b9cfd19..04a338ed5f3ceaeafbe05dd3e5169ec1ca1ddc3c:/cookbooks/munin/templates/default/munin.conf.erb?ds=inline diff --git a/cookbooks/munin/templates/default/munin.conf.erb b/cookbooks/munin/templates/default/munin.conf.erb index 9bceccd25..4926a07f9 100644 --- a/cookbooks/munin/templates/default/munin.conf.erb +++ b/cookbooks/munin/templates/default/munin.conf.erb @@ -17,10 +17,10 @@ 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 %> -<% else -%> +<% elsif client.external_ipaddress -%> address <%= client.external_ipaddress %> <% end -%> use_node_name yes