X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/b0da4432c68bf24f58fcf0c367e3d091493eb6aa..db8c5b1ab9ca142eaf27f7cf425759ca78dbdc65:/cookbooks/tilecache/recipes/default.rb?ds=inline diff --git a/cookbooks/tilecache/recipes/default.rb b/cookbooks/tilecache/recipes/default.rb index fbd8ef64d..7feb45fc9 100644 --- a/cookbooks/tilecache/recipes/default.rb +++ b/cookbooks/tilecache/recipes/default.rb @@ -21,10 +21,11 @@ include_recipe "squid" tilecaches = search(:node, "roles:tilecache").sort_by { |n| n[:hostname] } -@tilecaches.each do |cache| +tilecaches.each do |cache| cache.ipaddresses(:family => :inet, :role => :external).sort.each do |address| firewall_rule "accept-squid" do action :accept + family "inet" source "net:#{address}" dest "fw" proto "tcp:syn" @@ -33,6 +34,7 @@ tilecaches = search(:node, "roles:tilecache").sort_by { |n| n[:hostname] } end firewall_rule "accept-squid-icp" do action :accept + family "inet" source "net:#{address}" dest "fw" proto "udp"