X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/9037f0d00889ce2b1135263df9bbe6216c2a1280..4e3259a9a87be028b3a591661c386485e4a2a7fc:/cookbooks/planet/recipes/default.rb diff --git a/cookbooks/planet/recipes/default.rb b/cookbooks/planet/recipes/default.rb index c9e998524..706e766e8 100644 --- a/cookbooks/planet/recipes/default.rb +++ b/cookbooks/planet/recipes/default.rb @@ -61,12 +61,34 @@ remote_directory "/store/planet" do files_mode 0755 end -apache_module "rewrite" do - conf "rewrite.conf.erb" +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" 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