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