From: Grant Slater Date: Mon, 27 May 2019 23:52:58 +0000 (+0100) Subject: tilecahce: try fix cache name match X-Git-Url: https://git.openstreetmap.org./chef.git/commitdiff_plain/c2ead87b1ff929532f5ae3107ae9ce7a50ceed5f?ds=sidebyside tilecahce: try fix cache name match --- diff --git a/cookbooks/tilecache/templates/default/nginx_tile.conf.erb b/cookbooks/tilecache/templates/default/nginx_tile.conf.erb index b6873f39a..7343e066d 100644 --- a/cookbooks/tilecache/templates/default/nginx_tile.conf.erb +++ b/cookbooks/tilecache/templates/default/nginx_tile.conf.erb @@ -7,7 +7,7 @@ upstream tile_cache_backend { # Balancer: round-robin <% @caches.each do |cache| -%> <% if cache[:hostname] != node[:hostname] -%> -<% if node[:tilecache][:tile_siblings].include? cache[:hostname] -%> +<% if node[:tilecache][:tile_siblings].include? cache[:fqdn] -%> <% cache.ipaddresses(:family => :inet, :role => :external).sort.each do |address| -%> server <%= address %> backup; # Server <%= cache[:hostname] %> <% end -%>