From c2ead87b1ff929532f5ae3107ae9ce7a50ceed5f Mon Sep 17 00:00:00 2001 From: Grant Slater Date: Tue, 28 May 2019 00:52:58 +0100 Subject: [PATCH] tilecahce: try fix cache name match --- cookbooks/tilecache/templates/default/nginx_tile.conf.erb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -%> -- 2.43.2