X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/c6902ea9afba17351101f28b4a401e5193b89c1b..3a33d35c42600aa215df8467702c98bee73415f8:/cookbooks/munin/templates/default/munin-node.conf.erb?ds=sidebyside diff --git a/cookbooks/munin/templates/default/munin-node.conf.erb b/cookbooks/munin/templates/default/munin-node.conf.erb index 8c88fd612..6bd38df19 100644 --- a/cookbooks/munin/templates/default/munin-node.conf.erb +++ b/cookbooks/munin/templates/default/munin-node.conf.erb @@ -31,13 +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 -%> -<% if server[:openvpn] -%> -allow ^<%= Regexp.quote(server[:openvpn][:address]) %>$ -<% end -%> +<% @servers.sort.each do |server| -%> +allow ^<%= Regexp.quote(server) %>$ <% end -%> <% node[:munin][:allow].each do |address| -%> allow ^<%= Regexp.quote(address) %>$