X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/0c79b5dbf9284104cb1ab66bd0673f9d41dd08bd..036734d15e6cd4fbc57e031ceca870f6c90e53bf:/cookbooks/munin/recipes/default.rb?ds=inline 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