supports :status => true, :restart => true, :reload => true
end
-servers = []
-
-search(:node, "recipes:munin\\:\\:server").each do |server|
- server.interfaces(:role => :external) do |interface|
- servers << interface[:address]
- end
-end
+servers = search(:node, "recipes:munin\\:\\:server").map(&:ipaddresses).flatten
firewall_rule "accept-munin" do
action :accept