]> git.openstreetmap.org Git - chef.git/commitdiff
Tilecache shorewall: add IP family to avoid address error on IPv6
authorGrant Slater <git@firefishy.com>
Fri, 9 Aug 2013 10:59:16 +0000 (11:59 +0100)
committerGrant Slater <git@firefishy.com>
Fri, 9 Aug 2013 10:59:16 +0000 (11:59 +0100)
cookbooks/tilecache/recipes/default.rb

index 18aa14e145fc771fa638575ba199f8b01a233a5a..7feb45fc98b65522ee71fbd95c8e87b8b13314d8 100644 (file)
@@ -25,6 +25,7 @@ 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.each do |cache|
     end
     firewall_rule "accept-squid-icp" do
       action :accept
+      family "inet"
       source "net:#{address}"
       dest "fw"
       proto "udp"