supports :status => true, :restart => true, :reload => true
end
-servers = search(:node, "recipes:munin\\:\\:server").collect do |server|
- server.ipaddresses(:role => :external)
-end.flatten
+servers = search(:node, "recipes:munin\\:\\:server").map(&:ipaddresses).flatten
firewall_rule "accept-munin" do
action :accept
# List the addresses that are allowed to connect
allow ^127\.0\.0\.1$
-<% @servers.each do |server| -%>
+<% @servers.sort.each do |server| -%>
allow ^<%= Regexp.quote(server) %>$
<% end -%>
<% node[:munin][:allow].each do |address| -%>