X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/2e17bd4b4697423f9c124cfdb802424a58c16d80..d0df16b1ad827a1bf5be089798db8ceadb737196:/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