From d535c8b2c55ec52b31fd169a81eb4a184bf86e97 Mon Sep 17 00:00:00 2001 From: Tom Hughes Date: Mon, 11 Jun 2018 12:21:19 +0100 Subject: [PATCH] Don't use sibling caches with squid 3 --- cookbooks/tilecache/templates/default/squid.conf.erb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cookbooks/tilecache/templates/default/squid.conf.erb b/cookbooks/tilecache/templates/default/squid.conf.erb index 080c7998d..6c03797d1 100644 --- a/cookbooks/tilecache/templates/default/squid.conf.erb +++ b/cookbooks/tilecache/templates/default/squid.conf.erb @@ -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 -- 2.43.2