X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/0c79b5dbf9284104cb1ab66bd0673f9d41dd08bd..b88e04237dcfbf1d7c4b7aa6023465f8e4a34f44:/cookbooks/munin/recipes/default.rb 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