]> git.openstreetmap.org Git - chef.git/blobdiff - cookbooks/tilecache/recipes/default.rb
tilecache: allow ICP UDP replies
[chef.git] / cookbooks / tilecache / recipes / default.rb
index aec5170257362b4386530eb7c757b3008fc003fc..209a83dc969f3166059e13f000b5303016ddb9e8 100644 (file)
@@ -23,6 +23,8 @@ include_recipe "ssl"
 include_recipe "squid"
 include_recipe "nginx"
 
+package "xz-utils"
+
 tilecaches = search(:node, "roles:tilecache").sort_by { |n| n[:hostname] }
 tilerenders = search(:node, "roles:tile").sort_by { |n| n[:hostname] }
 
@@ -46,6 +48,15 @@ tilecaches.each do |cache|
       dest_ports "3130"
       source_ports "1024:"
     end
+    firewall_rule "accept-squid-icp-reply" do
+      action :accept
+      family "inet"
+      source "fw"
+      dest "net:#{address}"
+      proto "udp"
+      dest_ports "3130"
+      source_ports "1024:"
+    end
   end
 end