X-Git-Url: https://git.openstreetmap.org/chef.git/blobdiff_plain/7887d6f07bb4644a0846e901e220157bee2fb370..89a41ef0a45d66064c577adaba75663c27f2398b:/cookbooks/tilecache/recipes/default.rb diff --git a/cookbooks/tilecache/recipes/default.rb b/cookbooks/tilecache/recipes/default.rb index 7feb45fc9..19a475cd3 100644 --- a/cookbooks/tilecache/recipes/default.rb +++ b/cookbooks/tilecache/recipes/default.rb @@ -17,6 +17,9 @@ # limitations under the License. # +node.default[:ssl][:certificates] = node[:ssl][:certificates] | [ "tile.openstreetmap" ] + +include_recipe "ssl" include_recipe "squid" tilecaches = search(:node, "roles:tilecache").sort_by { |n| n[:hostname] } @@ -48,3 +51,11 @@ squid_fragment "tilecache" do template "squid.conf.erb" variables :caches => tilecaches end + +template "/etc/logrotate.d/squid" do + source "logrotate.squid.erb" + owner "root" + group "root" + mode 0644 +end +