]> git.openstreetmap.org Git - chef.git/commitdiff
Don't use sibling caches with squid 3
authorTom Hughes <tom@compton.nu>
Mon, 11 Jun 2018 11:21:19 +0000 (12:21 +0100)
committerTom Hughes <tom@compton.nu>
Mon, 11 Jun 2018 11:21:19 +0000 (12:21 +0100)
cookbooks/tilecache/templates/default/squid.conf.erb

index 080c7998d9a7ac662f412acdb11be338959354d8..6c03797d17ee17e380b3bf40fa2fc841ae5189e5 100644 (file)
@@ -105,11 +105,11 @@ acl tile_caches src <%= address %>
 <% end -%>
 <% end -%>
 
+<% if node[:squid][:version] == "2" -%>
 #Siblings
 <% node[:tilecache][:tile_siblings].each do |sibling| -%>
 cache_peer <%= sibling %> sibling 3128 3130 weight=1500
-cache_peer_access <%= sibling %> deny tile_caches
-cache_peer_access <%= sibling %> deny osmtile_thishost
+<% end -%>
 <% end -%>
 
 #Primary Parent