X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/d4a74eb0ce478386a1f5cf927708d1f2a485e7dd..a4f9ef96e2727b382c43307650d9fbb8ac456996:/cookbooks/tilecache/recipes/default.rb diff --git a/cookbooks/tilecache/recipes/default.rb b/cookbooks/tilecache/recipes/default.rb index 9e1193216..0ec9dda59 100644 --- a/cookbooks/tilecache/recipes/default.rb +++ b/cookbooks/tilecache/recipes/default.rb @@ -19,9 +19,6 @@ require "ipaddr" -certificate = node[:tilecache][:ssl][:certificate] -node.default[:ssl][:certificates] = node[:ssl][:certificates] | [certificate] - include_recipe "ssl" include_recipe "squid" include_recipe "nginx" @@ -30,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" @@ -74,7 +73,7 @@ tilecaches.each do |cache| end squid_fragment "tilecache" do - template "squid.conf.erb" + template_source "squid.conf.erb" variables :caches => tilecaches, :renders => tilerenders end @@ -119,12 +118,11 @@ ssl_certificate "tile.openstreetmap.org" do "a.tile.openstreetmap.org", "b.tile.openstreetmap.org", "c.tile.openstreetmap.org"] - fallback_certificate "tile.openstreetmap" notifies :restart, "service[nginx]" end nginx_site "tile-ssl" do - template "nginx_tile_ssl.conf.erb" + template_source "nginx_tile_ssl.conf.erb" variables :resolvers => resolvers, :caches => tilecaches end @@ -142,3 +140,7 @@ tilerenders.each do |render| conf_variables :host => render[:fqdn] end end + +Dir.glob("/var/log/nginx/access.log*") do |log| + File.unlink(log) +end