X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/ab47927c016597f8602b81dcdc168ad5c335389d..3a33d35c42600aa215df8467702c98bee73415f8:/cookbooks/munin/templates/default/munin-node.conf.erb diff --git a/cookbooks/munin/templates/default/munin-node.conf.erb b/cookbooks/munin/templates/default/munin-node.conf.erb index 4f3580b56..6bd38df19 100644 --- a/cookbooks/munin/templates/default/munin-node.conf.erb +++ b/cookbooks/munin/templates/default/munin-node.conf.erb @@ -31,10 +31,8 @@ port 4949 # List the addresses that are allowed to connect allow ^127\.0\.0\.1$ -<% @servers.each do |server| -%> -<% server.interfaces do |interface| -%> -allow ^<%= Regexp.quote(interface[:address]) %>$ -<% end -%> +<% @servers.sort.each do |server| -%> +allow ^<%= Regexp.quote(server) %>$ <% end -%> <% node[:munin][:allow].each do |address| -%> allow ^<%= Regexp.quote(address) %>$