X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/9037f0d00889ce2b1135263df9bbe6216c2a1280..e517f49bcdd9b1afac9809154c8d727f2bc96847:/cookbooks/planet/recipes/default.rb diff --git a/cookbooks/planet/recipes/default.rb b/cookbooks/planet/recipes/default.rb index c9e998524..1edc46fdd 100644 --- a/cookbooks/planet/recipes/default.rb +++ b/cookbooks/planet/recipes/default.rb @@ -61,6 +61,24 @@ remote_directory "/store/planet" do files_mode 0755 end +directory "/store/planet/planet" do + owner "www-data" + group "planet" + mode 0775 +end + +directory "/store/planet/pbf" do + owner "www-data" + group "planet" + mode 0775 +end + +directory "/store/planet/notes" do + owner "www-data" + group "planet" + mode 0775 +end + apache_module "rewrite" do conf "rewrite.conf.erb" end @@ -70,3 +88,10 @@ apache_module "proxy_http" apache_site "planet.openstreetmap.org" do template "apache.erb" end + +template "/etc/logrotate.d/apache2" do + source "logrotate.apache.erb" + owner "root" + group "root" + mode 0644 +end