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