X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/cdb2f6f01940242c613b6c1d31332598dec7d625..35f220a555dee107786152d3daff4d66d1655e56:/cookbooks/stateofthemap/recipes/default.rb diff --git a/cookbooks/stateofthemap/recipes/default.rb b/cookbooks/stateofthemap/recipes/default.rb index fae6b442d..55e40e217 100644 --- a/cookbooks/stateofthemap/recipes/default.rb +++ b/cookbooks/stateofthemap/recipes/default.rb @@ -21,6 +21,19 @@ include_recipe "wordpress" 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" @@ -242,9 +255,7 @@ directory "/srv/2016.stateofthemap.org" do end wordpress_site "2016.stateofthemap.org" do - aliases ["2016.stateofthemap.com", - "www.stateofthemap.org", "stateofthemap.org", - "www.stateofthemap.com", "stateofthemap.com"] + aliases "2016.stateofthemap.com" directory "/srv/2016.stateofthemap.org/wp" ssl_enabled true database_name "sotm2016"