directory "/srv/2007.stateofthemap.org" do
owner "wordpress"
group "wordpress"
- mode 0o755
+ mode "755"
end
wordpress_site "2007.stateofthemap.org" do
directory "/srv/2008.stateofthemap.org" do
owner "wordpress"
group "wordpress"
- mode 0o755
+ mode "755"
end
wordpress_site "2008.stateofthemap.org" do
directory "/srv/2009.stateofthemap.org" do
owner "wordpress"
group "wordpress"
- mode 0o755
+ mode "755"
end
git "/srv/2009.stateofthemap.org" do
directory "/srv/2010.stateofthemap.org" do
owner "wordpress"
group "wordpress"
- mode 0o755
+ mode "755"
end
git "/srv/2010.stateofthemap.org" do
directory "/srv/2011.stateofthemap.org" do
owner "wordpress"
group "wordpress"
- mode 0o755
+ mode "755"
end
git "/srv/2011.stateofthemap.org" do
directory "/srv/2012.stateofthemap.org" do
owner "wordpress"
group "wordpress"
- mode 0o755
+ mode "755"
end
git "/srv/2012.stateofthemap.org" do
end
package %w[
+ gcc
+ g++
+ make
ruby
ruby-dev
libssl-dev
version "1.17.3"
end
+gem_package "bundler" do
+ version "2.1.4"
+end
+
%w[2016 2017 2018 2019 2020].each do |year|
git "/srv/#{year}.stateofthemap.org" do
action :sync
- repository "git://github.com/openstreetmap/stateofthemap-#{year}.git"
+ repository "https://github.com/openstreetmap/stateofthemap-#{year}.git"
depth 1
user "root"
group "root"
end
directory "/srv/#{year}.stateofthemap.org/_site" do
- mode 0o755
+ mode "755"
owner "nobody"
group "nogroup"
end
# Workaround https://github.com/jekyll/jekyll/issues/7804
# by creating a .jekyll-cache folder
directory "/srv/#{year}.stateofthemap.org/.jekyll-cache" do
- mode 0o755
+ mode "755"
owner "nobody"
group "nogroup"
end
source "backup.cron.erb"
owner "root"
group "root"
- mode 0o750
+ mode "750"
variables :passwords => passwords
end