]> git.openstreetmap.org Git - chef.git/blobdiff - cookbooks/munin/templates/default/munin-node.conf.erb
Add new Amsterdam addresses to whitelists
[chef.git] / cookbooks / munin / templates / default / munin-node.conf.erb
index 4f3580b563ba9e7a1eec94e333c6d8fdf43f39fb..6bd38df19690ca22fdc8304bfac52323c8964fd9 100644 (file)
@@ -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) %>$