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 directory "/srv/2007.stateofthemap.org" do
30 wordpress_site "2007.stateofthemap.org" do
31 aliases "2007.stateofthemap.com"
32 directory "/srv/2007.stateofthemap.org/wp"
34 database_name "sotm2007"
35 database_user "sotm2007"
36 database_password passwords["sotm2007"]
37 database_prefix "wp_sotm_"
40 wordpress_theme "refreshwp-11" do
41 site "2007.stateofthemap.org"
42 repository "git://git.openstreetmap.org/stateofthemap.git"
46 wordpress_plugin "geopress" do
47 site "2007.stateofthemap.org"
50 wordpress_plugin "sem-static-front" do
51 site "2007.stateofthemap.org"
52 repository "git://chef.openstreetmap.org/sem-static-front.git"
55 directory "/srv/2008.stateofthemap.org" do
61 wordpress_site "2008.stateofthemap.org" do
62 aliases "2008.stateofthemap.com"
63 directory "/srv/2008.stateofthemap.org/wp"
65 database_name "sotm2008"
66 database_user "sotm2008"
67 database_password passwords["sotm2008"]
68 database_prefix "wp_sotm08_"
71 wordpress_theme "refreshwp-11" do
72 site "2008.stateofthemap.org"
73 repository "git://git.openstreetmap.org/stateofthemap.git"
77 wordpress_plugin "geopress" do
78 site "2008.stateofthemap.org"
81 directory "/srv/2009.stateofthemap.org" do
87 git "/srv/2009.stateofthemap.org" do
89 repository "git://git.openstreetmap.org/stateofthemap.git"
90 revision "resources-2009"
95 wordpress_site "2009.stateofthemap.org" do
96 aliases "2009.stateofthemap.com"
97 directory "/srv/2009.stateofthemap.org/wp"
99 database_name "sotm2009"
100 database_user "sotm2009"
101 database_password passwords["sotm2009"]
102 urls "/register" => "/srv/2009.stateofthemap.org/register",
103 "/register-pro-user" => "/srv/2009.stateofthemap.org/register-pro-user",
104 "/podcasts" => "/srv/2009.stateofthemap.org/podcasts"
107 wordpress_theme "aerodrome" do
108 site "2009.stateofthemap.org"
109 repository "git://git.openstreetmap.org/stateofthemap.git"
110 revision "theme-2009"
113 wordpress_plugin "wp-sticky" do
114 site "2009.stateofthemap.org"
117 directory "/srv/2010.stateofthemap.org" do
123 git "/srv/2010.stateofthemap.org" do
125 repository "git://git.openstreetmap.org/stateofthemap.git"
126 revision "resources-2010"
131 wordpress_site "2010.stateofthemap.org" do
132 aliases "2010.stateofthemap.com"
133 directory "/srv/2010.stateofthemap.org/wp"
135 database_name "sotm2010"
136 database_user "sotm2010"
137 database_password passwords["sotm2010"]
138 urls "/register" => "/srv/2010.stateofthemap.org/register"
141 wordpress_theme "aerodrome" do
142 site "2010.stateofthemap.org"
143 repository "git://git.openstreetmap.org/stateofthemap.git"
144 revision "theme-2010"
147 wordpress_plugin "sitepress-multilingual-cms" do
148 site "2010.stateofthemap.org"
149 repository "git://chef.openstreetmap.org/sitepress-multilingual-cms.git"
152 wordpress_plugin "wp-sticky" do
153 site "2010.stateofthemap.org"
156 directory "/srv/2011.stateofthemap.org" do
162 git "/srv/2011.stateofthemap.org" do
164 repository "git://git.openstreetmap.org/stateofthemap.git"
165 revision "resources-2011"
170 wordpress_site "2011.stateofthemap.org" do
171 aliases "2011.stateofthemap.com"
172 directory "/srv/2011.stateofthemap.org/wp"
174 database_name "sotm2011"
175 database_user "sotm2011"
176 database_password passwords["sotm2011"]
177 urls "/register" => "/srv/2011.stateofthemap.org/register"
180 wordpress_theme "aerodrome" do
181 site "2011.stateofthemap.org"
182 repository "git://git.openstreetmap.org/stateofthemap.git"
183 revision "theme-2011"
186 wordpress_plugin "sitepress-multilingual-cms" do
187 site "2011.stateofthemap.org"
188 repository "git://chef.openstreetmap.org/sitepress-multilingual-cms.git"
191 wordpress_plugin "wp-sticky" do
192 site "2011.stateofthemap.org"
195 directory "/srv/2012.stateofthemap.org" do
201 git "/srv/2012.stateofthemap.org" do
203 repository "git://git.openstreetmap.org/stateofthemap.git"
204 revision "resources-2012"
209 wordpress_site "2012.stateofthemap.org" do
210 aliases "2012.stateofthemap.com"
211 directory "/srv/2012.stateofthemap.org/wp"
213 database_name "sotm2012"
214 database_user "sotm2012"
215 database_password passwords["sotm2012"]
216 urls "/register" => "/srv/2012.stateofthemap.org/register"
219 wordpress_theme "aerodrome" do
220 site "2012.stateofthemap.org"
221 repository "git://git.openstreetmap.org/stateofthemap.git"
222 revision "theme-2012"
225 wordpress_plugin "leaflet-maps-marker" do
226 site "2012.stateofthemap.org"
229 wordpress_plugin "sitepress-multilingual-cms" do
230 site "2012.stateofthemap.org"
231 repository "git://chef.openstreetmap.org/sitepress-multilingual-cms.git"
234 wordpress_plugin "wp-sticky" do
235 site "2012.stateofthemap.org"
238 directory "/srv/2016.stateofthemap.org" do
244 wordpress_site "2016.stateofthemap.org" do
245 aliases ["2016.stateofthemap.com",
246 "www.stateofthemap.org", "stateofthemap.org",
247 "www.stateofthemap.com", "stateofthemap.com"]
248 directory "/srv/2016.stateofthemap.org/wp"
250 database_name "sotm2016"
251 database_user "sotm2016"
252 database_password passwords["sotm2016"]
255 wordpress_theme "aerodrome" do
256 site "2016.stateofthemap.org"
257 repository "git://git.openstreetmap.org/stateofthemap.git"
258 revision "theme-2012"
261 wordpress_plugin "leaflet-maps-marker" do
262 site "2016.stateofthemap.org"
265 wordpress_plugin "sitepress-multilingual-cms" do
266 site "2016.stateofthemap.org"
267 repository "git://chef.openstreetmap.org/sitepress-multilingual-cms.git"
270 wordpress_plugin "wp-sticky" do
271 site "2016.stateofthemap.org"
274 template "/etc/cron.daily/sotm-backup" do
275 source "backup.cron.erb"
279 variables :passwords => passwords