X-Git-Url: https://git.openstreetmap.org/chef.git/blobdiff_plain/6b8e67103d90b327fb6eb1dd859cfd7f7d18340f..981b586040b3fe307a4855e58e846da75555aa05:/cookbooks/tilecache/recipes/default.rb diff --git a/cookbooks/tilecache/recipes/default.rb b/cookbooks/tilecache/recipes/default.rb index 0a02e1567..d1773b506 100644 --- a/cookbooks/tilecache/recipes/default.rb +++ b/cookbooks/tilecache/recipes/default.rb @@ -8,7 +8,7 @@ # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # -# http://www.apache.org/licenses/LICENSE-2.0 +# https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, @@ -27,8 +27,10 @@ package "apache2" do action :remove end -package "xz-utils" -package "openssl" +package %w[ + xz-utils + openssl +] # oathtool for QoS token package "oathtool" @@ -86,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" @@ -120,8 +118,12 @@ ssl_certificate "tile.openstreetmap.org" do end nginx_site "tile-ssl" do - template "nginx_tile_ssl.conf.erb" - variables :resolvers => resolvers, :caches => tilecaches + action :delete +end + +nginx_site "tile" do + template "nginx_tile.conf.erb" + variables :caches => tilecaches end template "/etc/logrotate.d/nginx" do