2 # Cookbook Name:: stateofthemap
5 # Copyright 2013, OpenStreetMap Foundation
7 # Licensed under the Apache License, Version 2.0 (the "License");
8 # you may not use this file except in compliance with the License.
9 # You may obtain a copy of the License at
11 # http://www.apache.org/licenses/LICENSE-2.0
13 # Unless required by applicable law or agreed to in writing, software
14 # distributed under the License is distributed on an "AS IS" BASIS,
15 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16 # See the License for the specific language governing permissions and
17 # limitations under the License.
20 node.default[:ssl][:certificates] = node[:ssl][:certificates] | ["osmfoundation"]
22 include_recipe "wordpress"
24 passwords = data_bag_item("stateofthemap", "passwords")
26 directory "/srv/2007.stateofthemap.org" do
32 wordpress_site "2007.stateofthemap.org" do
33 aliases "2007.stateofthemap.com"
34 directory "/srv/2007.stateofthemap.org/wp"
36 ssl_certificate "osmfoundation"
37 ssl_certificate_chain "startcom"
38 database_name "sotm2007"
39 database_user "sotm2007"
40 database_password passwords["sotm2007"]
41 database_prefix "wp_sotm_"
44 wordpress_theme "refreshwp-11" do
45 site "2007.stateofthemap.org"
46 repository "git://git.openstreetmap.org/stateofthemap.git"
50 wordpress_plugin "geopress" do
51 site "2007.stateofthemap.org"
54 wordpress_plugin "sem-static-front" do
55 site "2007.stateofthemap.org"
56 repository "git://chef.openstreetmap.org/sem-static-front.git"
59 directory "/srv/2008.stateofthemap.org" do
65 wordpress_site "2008.stateofthemap.org" do
66 aliases "2008.stateofthemap.com"
67 directory "/srv/2008.stateofthemap.org/wp"
69 ssl_certificate "osmfoundation"
70 ssl_certificate_chain "startcom"
71 database_name "sotm2008"
72 database_user "sotm2008"
73 database_password passwords["sotm2008"]
74 database_prefix "wp_sotm08_"
77 wordpress_theme "refreshwp-11" do
78 site "2008.stateofthemap.org"
79 repository "git://git.openstreetmap.org/stateofthemap.git"
83 wordpress_plugin "geopress" do
84 site "2008.stateofthemap.org"
87 directory "/srv/2009.stateofthemap.org" do
93 git "/srv/2009.stateofthemap.org" do
95 repository "git://git.openstreetmap.org/stateofthemap.git"
96 revision "resources-2009"
101 wordpress_site "2009.stateofthemap.org" do
102 aliases "2009.stateofthemap.com"
103 directory "/srv/2009.stateofthemap.org/wp"
105 ssl_certificate "osmfoundation"
106 ssl_certificate_chain "startcom"
107 database_name "sotm2009"
108 database_user "sotm2009"
109 database_password passwords["sotm2009"]
110 urls "/register" => "/srv/2009.stateofthemap.org/register",
111 "/register-pro-user" => "/srv/2009.stateofthemap.org/register-pro-user",
112 "/podcasts" => "/srv/2009.stateofthemap.org/podcasts"
115 wordpress_theme "aerodrome" do
116 site "2009.stateofthemap.org"
117 repository "git://git.openstreetmap.org/stateofthemap.git"
118 revision "theme-2009"
121 wordpress_plugin "wp-sticky" do
122 site "2009.stateofthemap.org"
125 directory "/srv/2010.stateofthemap.org" do
131 git "/srv/2010.stateofthemap.org" do
133 repository "git://git.openstreetmap.org/stateofthemap.git"
134 revision "resources-2010"
139 wordpress_site "2010.stateofthemap.org" do
140 aliases "2010.stateofthemap.com"
141 directory "/srv/2010.stateofthemap.org/wp"
143 ssl_certificate "osmfoundation"
144 ssl_certificate_chain "startcom"
145 database_name "sotm2010"
146 database_user "sotm2010"
147 database_password passwords["sotm2010"]
148 urls "/register" => "/srv/2010.stateofthemap.org/register"
151 wordpress_theme "aerodrome" do
152 site "2010.stateofthemap.org"
153 repository "git://git.openstreetmap.org/stateofthemap.git"
154 revision "theme-2010"
157 wordpress_plugin "sitepress-multilingual-cms" do
158 site "2010.stateofthemap.org"
159 repository "git://chef.openstreetmap.org/sitepress-multilingual-cms.git"
162 wordpress_plugin "wp-sticky" do
163 site "2010.stateofthemap.org"
166 directory "/srv/2011.stateofthemap.org" do
172 git "/srv/2011.stateofthemap.org" do
174 repository "git://git.openstreetmap.org/stateofthemap.git"
175 revision "resources-2011"
180 wordpress_site "2011.stateofthemap.org" do
181 aliases "2011.stateofthemap.com"
182 directory "/srv/2011.stateofthemap.org/wp"
184 ssl_certificate "osmfoundation"
185 ssl_certificate_chain "startcom"
186 database_name "sotm2011"
187 database_user "sotm2011"
188 database_password passwords["sotm2011"]
189 urls "/register" => "/srv/2011.stateofthemap.org/register"
192 wordpress_theme "aerodrome" do
193 site "2011.stateofthemap.org"
194 repository "git://git.openstreetmap.org/stateofthemap.git"
195 revision "theme-2011"
198 wordpress_plugin "sitepress-multilingual-cms" do
199 site "2011.stateofthemap.org"
200 repository "git://chef.openstreetmap.org/sitepress-multilingual-cms.git"
203 wordpress_plugin "wp-sticky" do
204 site "2011.stateofthemap.org"
207 directory "/srv/2012.stateofthemap.org" do
213 git "/srv/2012.stateofthemap.org" do
215 repository "git://git.openstreetmap.org/stateofthemap.git"
216 revision "resources-2012"
221 wordpress_site "2012.stateofthemap.org" do
222 aliases "2012.stateofthemap.com"
223 directory "/srv/2012.stateofthemap.org/wp"
225 ssl_certificate "osmfoundation"
226 ssl_certificate_chain "startcom"
227 database_name "sotm2012"
228 database_user "sotm2012"
229 database_password passwords["sotm2012"]
230 urls "/register" => "/srv/2012.stateofthemap.org/register"
233 wordpress_theme "aerodrome" do
234 site "2012.stateofthemap.org"
235 repository "git://git.openstreetmap.org/stateofthemap.git"
236 revision "theme-2012"
239 wordpress_plugin "leaflet-maps-marker" do
240 site "2012.stateofthemap.org"
243 wordpress_plugin "sitepress-multilingual-cms" do
244 site "2012.stateofthemap.org"
245 repository "git://chef.openstreetmap.org/sitepress-multilingual-cms.git"
248 wordpress_plugin "wp-sticky" do
249 site "2012.stateofthemap.org"
252 template "/etc/cron.daily/sotm-backup" do
253 source "backup.cron.erb"
257 variables :passwords => passwords