]> git.openstreetmap.org Git - chef.git/blobdiff - cookbooks/munin/recipes/default.rb
Limit the number of threads used for low zoom renders
[chef.git] / cookbooks / munin / recipes / default.rb
index a54b387185fdde2a413b0db111b050cd29cde13c..9b2c6f294776195a57813c1841cba5eb7567f178 100644 (file)
@@ -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