X-Git-Url: https://git.openstreetmap.org/chef.git/blobdiff_plain/d4a74eb0ce478386a1f5cf927708d1f2a485e7dd..839ad56c90d3979fffbb9c18d0f2d10eb6f56566:/cookbooks/tilecache/recipes/default.rb diff --git a/cookbooks/tilecache/recipes/default.rb b/cookbooks/tilecache/recipes/default.rb index 9e1193216..728d26f49 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" @@ -119,7 +118,6 @@ 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 @@ -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