X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/0c79b5dbf9284104cb1ab66bd0673f9d41dd08bd..2f1208a2f1796191ac32543b9b949d1c607dcd15:/cookbooks/munin/recipes/default.rb?ds=sidebyside diff --git a/cookbooks/munin/recipes/default.rb b/cookbooks/munin/recipes/default.rb index a54b38718..9b2c6f294 100644 --- a/cookbooks/munin/recipes/default.rb +++ b/cookbooks/munin/recipes/default.rb @@ -24,9 +24,7 @@ service "munin-node" do 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