X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/24c634aea798f7064635cf001cac0430bbc50b33..9e4e90fddd2c71d77d811a32b15a568944accae8:/cookbooks/osqa/recipes/default.rb diff --git a/cookbooks/osqa/recipes/default.rb b/cookbooks/osqa/recipes/default.rb index a1fb95a44..c56a2a9b6 100644 --- a/cookbooks/osqa/recipes/default.rb +++ b/cookbooks/osqa/recipes/default.rb @@ -101,7 +101,7 @@ node[:osqa][:sites].each do |site| directory directory do owner site_user group site_group - mode 0o755 + mode "755" end execute "osqa-migrate" do @@ -117,6 +117,7 @@ node[:osqa][:sites].each do |site| action :sync repository "https://git.openstreetmap.org/public/osqa.git" revision "live" + depth 1 user site_user group site_group notifies :run, "execute[osqa-migrate]" @@ -125,14 +126,14 @@ node[:osqa][:sites].each do |site| directory "#{directory}/upfiles" do user site_user group site_group - mode 0o755 + mode "755" end template "#{directory}/osqa/osqa.wsgi" do source "osqa.wsgi.erb" owner site_user group site_group - mode 0o644 + mode "644" variables :directory => directory notifies :reload, "service[apache2]" end @@ -154,7 +155,7 @@ node[:osqa][:sites].each do |site| file "#{directory}/osqa/settings_local.py" do owner site_user group site_group - mode 0o644 + mode "644" content settings notifies :reload, "service[apache2]" end @@ -163,7 +164,7 @@ node[:osqa][:sites].each do |site| source "backup.cron.erb" owner "root" group "root" - mode 0o755 + mode "755" variables :name => backup_name, :directory => directory, :user => site_user, :database => database_name end end