X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/a4f9ef96e2727b382c43307650d9fbb8ac456996..090fe909149f22d158c859a7d4a9edfb523df2fb:/cookbooks/tilecache/recipes/default.rb diff --git a/cookbooks/tilecache/recipes/default.rb b/cookbooks/tilecache/recipes/default.rb index 0ec9dda59..994c6104a 100644 --- a/cookbooks/tilecache/recipes/default.rb +++ b/cookbooks/tilecache/recipes/default.rb @@ -73,7 +73,7 @@ tilecaches.each do |cache| end squid_fragment "tilecache" do - template_source "squid.conf.erb" + template "squid.conf.erb" variables :caches => tilecaches, :renders => tilerenders end @@ -88,10 +88,6 @@ nginx_site "default" do action [:delete] end -resolvers = node[:networking][:nameservers].map do |resolver| - IPAddr.new(resolver).ipv6? ? "[#{resolver}]" : resolver -end - template "/usr/local/bin/nginx_generate_tilecache_qos_map" do source "nginx_generate_tilecache_qos_map.erb" owner "root" @@ -122,8 +118,8 @@ ssl_certificate "tile.openstreetmap.org" do end nginx_site "tile-ssl" do - template_source "nginx_tile_ssl.conf.erb" - variables :resolvers => resolvers, :caches => tilecaches + template "nginx_tile_ssl.conf.erb" + variables :caches => tilecaches end template "/etc/logrotate.d/nginx" do