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 include_recipe "wordpress"
22 passwords = data_bag_item("stateofthemap", "passwords")
24 git "/srv/stateofthemap.org" do
26 repository "git://git.openstreetmap.org/stateofthemap.git"
32 apache_site "stateofthemap.org" do
34 directory "/srv/stateofthemap.org"
37 directory "/srv/2007.stateofthemap.org" do
43 wordpress_site "2007.stateofthemap.org" do
44 aliases "2007.stateofthemap.com"
45 directory "/srv/2007.stateofthemap.org/wp"
47 database_name "sotm2007"
48 database_user "sotm2007"
49 database_password passwords["sotm2007"]
50 database_prefix "wp_sotm_"
53 wordpress_theme "refreshwp-11" do
54 site "2007.stateofthemap.org"
55 repository "git://git.openstreetmap.org/stateofthemap.git"
59 wordpress_plugin "geopress" do
60 site "2007.stateofthemap.org"
63 wordpress_plugin "sem-static-front" do
64 site "2007.stateofthemap.org"
65 repository "git://chef.openstreetmap.org/sem-static-front.git"
68 directory "/srv/2008.stateofthemap.org" do
74 wordpress_site "2008.stateofthemap.org" do
75 aliases "2008.stateofthemap.com"
76 directory "/srv/2008.stateofthemap.org/wp"
78 database_name "sotm2008"
79 database_user "sotm2008"
80 database_password passwords["sotm2008"]
81 database_prefix "wp_sotm08_"
84 wordpress_theme "refreshwp-11" do
85 site "2008.stateofthemap.org"
86 repository "git://git.openstreetmap.org/stateofthemap.git"
90 wordpress_plugin "geopress" do
91 site "2008.stateofthemap.org"
94 directory "/srv/2009.stateofthemap.org" do
100 git "/srv/2009.stateofthemap.org" do
102 repository "git://git.openstreetmap.org/stateofthemap.git"
103 revision "resources-2009"
108 wordpress_site "2009.stateofthemap.org" do
109 aliases "2009.stateofthemap.com"
110 directory "/srv/2009.stateofthemap.org/wp"
112 database_name "sotm2009"
113 database_user "sotm2009"
114 database_password passwords["sotm2009"]
115 urls "/register" => "/srv/2009.stateofthemap.org/register",
116 "/register-pro-user" => "/srv/2009.stateofthemap.org/register-pro-user",
117 "/podcasts" => "/srv/2009.stateofthemap.org/podcasts"
120 wordpress_theme "aerodrome" do
121 site "2009.stateofthemap.org"
122 repository "git://git.openstreetmap.org/stateofthemap.git"
123 revision "theme-2009"
126 wordpress_plugin "wp-sticky" do
127 site "2009.stateofthemap.org"
130 directory "/srv/2010.stateofthemap.org" do
136 git "/srv/2010.stateofthemap.org" do
138 repository "git://git.openstreetmap.org/stateofthemap.git"
139 revision "resources-2010"
144 wordpress_site "2010.stateofthemap.org" do
145 aliases "2010.stateofthemap.com"
146 directory "/srv/2010.stateofthemap.org/wp"
148 database_name "sotm2010"
149 database_user "sotm2010"
150 database_password passwords["sotm2010"]
151 urls "/register" => "/srv/2010.stateofthemap.org/register"
154 wordpress_theme "aerodrome" do
155 site "2010.stateofthemap.org"
156 repository "git://git.openstreetmap.org/stateofthemap.git"
157 revision "theme-2010"
160 wordpress_plugin "sitepress-multilingual-cms" do
161 site "2010.stateofthemap.org"
162 repository "git://chef.openstreetmap.org/sitepress-multilingual-cms.git"
165 wordpress_plugin "wp-sticky" do
166 site "2010.stateofthemap.org"
169 directory "/srv/2011.stateofthemap.org" do
175 git "/srv/2011.stateofthemap.org" do
177 repository "git://git.openstreetmap.org/stateofthemap.git"
178 revision "resources-2011"
183 wordpress_site "2011.stateofthemap.org" do
184 aliases "2011.stateofthemap.com"
185 directory "/srv/2011.stateofthemap.org/wp"
187 database_name "sotm2011"
188 database_user "sotm2011"
189 database_password passwords["sotm2011"]
190 urls "/register" => "/srv/2011.stateofthemap.org/register"
193 wordpress_theme "aerodrome" do
194 site "2011.stateofthemap.org"
195 repository "git://git.openstreetmap.org/stateofthemap.git"
196 revision "theme-2011"
199 wordpress_plugin "sitepress-multilingual-cms" do
200 site "2011.stateofthemap.org"
201 repository "git://chef.openstreetmap.org/sitepress-multilingual-cms.git"
204 wordpress_plugin "wp-sticky" do
205 site "2011.stateofthemap.org"
208 directory "/srv/2012.stateofthemap.org" do
214 git "/srv/2012.stateofthemap.org" do
216 repository "git://git.openstreetmap.org/stateofthemap.git"
217 revision "resources-2012"
222 wordpress_site "2012.stateofthemap.org" do
223 aliases "2012.stateofthemap.com"
224 directory "/srv/2012.stateofthemap.org/wp"
226 database_name "sotm2012"
227 database_user "sotm2012"
228 database_password passwords["sotm2012"]
229 urls "/register" => "/srv/2012.stateofthemap.org/register"
232 wordpress_theme "aerodrome" do
233 site "2012.stateofthemap.org"
234 repository "git://git.openstreetmap.org/stateofthemap.git"
235 revision "theme-2012"
238 wordpress_plugin "leaflet-maps-marker" do
239 site "2012.stateofthemap.org"
242 wordpress_plugin "sitepress-multilingual-cms" do
243 site "2012.stateofthemap.org"
244 repository "git://chef.openstreetmap.org/sitepress-multilingual-cms.git"
247 wordpress_plugin "wp-sticky" do
248 site "2012.stateofthemap.org"
251 directory "/srv/2016.stateofthemap.org" do
257 wordpress_site "2016.stateofthemap.org" do
258 aliases "2016.stateofthemap.com"
259 directory "/srv/2016.stateofthemap.org/wp"
261 database_name "sotm2016"
262 database_user "sotm2016"
263 database_password passwords["sotm2016"]
266 wordpress_theme "aerodrome" do
267 site "2016.stateofthemap.org"
268 repository "git://git.openstreetmap.org/stateofthemap.git"
269 revision "theme-2012"
272 wordpress_plugin "leaflet-maps-marker" do
273 site "2016.stateofthemap.org"
276 wordpress_plugin "sitepress-multilingual-cms" do
277 site "2016.stateofthemap.org"
278 repository "git://chef.openstreetmap.org/sitepress-multilingual-cms.git"
281 wordpress_plugin "wp-sticky" do
282 site "2016.stateofthemap.org"
285 template "/etc/cron.daily/sotm-backup" do
286 source "backup.cron.erb"
290 variables :passwords => passwords