X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/aeaa46f3071de018b5c5e0f5678cb5b4082e3ddc..4b9d80c0887c9792ebfbbb1c3bed79dc19173b18:/cookbooks/backup/recipes/default.rb diff --git a/cookbooks/backup/recipes/default.rb b/cookbooks/backup/recipes/default.rb index a123a19ab..64e63fdee 100644 --- a/cookbooks/backup/recipes/default.rb +++ b/cookbooks/backup/recipes/default.rb @@ -22,6 +22,7 @@ include_recipe "accounts" package %w[ perl libdate-calc-perl + awscli ] directory "/store/backup" do @@ -31,6 +32,15 @@ directory "/store/backup" do recursive true end +%w[planet tile www].each do |service| + directory "/store/logs/#{service}.openstreetmap.org" do + owner "osmbackup" + group "osmbackup" + mode "2755" + recursive true + end +end + cookbook_file "/usr/local/bin/expire-backups" do owner "root" group "root"