X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/ab47927c016597f8602b81dcdc168ad5c335389d..2071840d7bb41d53efec9f75dc7f6beb126fa8de:/cookbooks/backup/recipes/default.rb?ds=sidebyside 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"