passwords = data_bag_item("stateofthemap", "passwords")
+git "/srv/stateofthemap.org" do
+ action :sync
+ repository "git://git.openstreetmap.org/stateofthemap.git"
+ revision "chooser"
+ user "root"
+ group "root"
+end
+
+apache_site "stateofthemap.org" do
+ template "apache.erb"
+ directory "/srv/stateofthemap.org"
+end
+
directory "/srv/2007.stateofthemap.org" do
owner "wordpress"
group "wordpress"
--- /dev/null
+# DO NOT EDIT - This file is being maintained by Chef
+
+<VirtualHost *:80>
+ ServerName stateofthemap.org
+ ServerAlias stateofthemap.com
+ ServerAlias www.stateofthemap.org
+ ServerAlias www.stateofthemap.com
+ ServerAdmin webmaster@openstreetmap.org
+
+ CustomLog /var/log/apache2/stateofthemap.org-access.log combined
+ ErrorLog /var/log/apache2/stateofthemap.org-error.log
+
+ RedirectPermanent / https://stateofthemap.org/
+</VirtualHost>
+
+<VirtualHost *:443>
+ ServerName stateofthemap.com
+ ServerAlias www.stateofthemap.org
+ ServerAlias www.stateofthemap.com
+ ServerAdmin webmaster@openstreetmap.org
+
+ CustomLog /var/log/apache2/stateofthemap.org-access.log combined
+ ErrorLog /var/log/apache2/stateofthemap.org-error.log
+
+ RedirectPermanent / https://stateofthemap.org/
+</VirtualHost>
+
+<VirtualHost *:443>
+ ServerName stateofthemap.org
+ ServerAdmin webmaster@openstreetmap.org
+
+ CustomLog /var/log/apache2/stateofthemap.org-access.log combined
+ ErrorLog /var/log/apache2/stateofthemap.org-error.log
+
+ DocumentRoot /srv/stateofthemap.org/html
+</VirtualHost>
+
+<Directory /srv/stateofthemap.org/html>
+ Require all granted
+</Directory>