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"
33 database_name "sotm2007"
34 database_user "sotm2007"
35 database_password passwords["sotm2007"]
36 database_prefix "wp_sotm_"
39 wordpress_theme "refreshwp-11" do
40 site "2007.stateofthemap.org"
41 repository "git://git.openstreetmap.org/stateofthemap.git"
45 wordpress_plugin "geopress" do
46 site "2007.stateofthemap.org"
49 wordpress_plugin "sem-static-front" do
50 site "2007.stateofthemap.org"
51 source "plugins/sem-static-front"
54 directory "/srv/2008.stateofthemap.org" do
60 wordpress_site "2008.stateofthemap.org" do
61 aliases "2008.stateofthemap.com"
62 directory "/srv/2008.stateofthemap.org/wp"
63 database_name "sotm2008"
64 database_user "sotm2008"
65 database_password passwords["sotm2008"]
66 database_prefix "wp_sotm08_"
69 wordpress_theme "refreshwp-11" do
70 site "2008.stateofthemap.org"
71 repository "git://git.openstreetmap.org/stateofthemap.git"
75 wordpress_plugin "geopress" do
76 site "2008.stateofthemap.org"
79 directory "/srv/2009.stateofthemap.org" do
85 git "/srv/2009.stateofthemap.org" do
87 repository "git://git.openstreetmap.org/stateofthemap.git"
88 revision "resources-2009"
93 wordpress_site "2009.stateofthemap.org" do
94 aliases "2009.stateofthemap.com"
95 directory "/srv/2009.stateofthemap.org/wp"
96 database_name "sotm2009"
97 database_user "sotm2009"
98 database_password passwords["sotm2009"]
99 urls "/register" => "/srv/2009.stateofthemap.org/register",
100 "/register-pro-user" => "/srv/2009.stateofthemap.org/register-pro-user",
101 "/podcasts" => "/srv/2009.stateofthemap.org/podcasts"
104 wordpress_theme "aerodrome" do
105 site "2009.stateofthemap.org"
106 repository "git://git.openstreetmap.org/stateofthemap.git"
107 revision "theme-2009"
110 wordpress_plugin "wp-sticky" do
111 site "2009.stateofthemap.org"
114 directory "/srv/2010.stateofthemap.org" do
120 git "/srv/2010.stateofthemap.org" do
122 repository "git://git.openstreetmap.org/stateofthemap.git"
123 revision "resources-2010"
128 wordpress_site "2010.stateofthemap.org" do
129 aliases "2010.stateofthemap.com"
130 directory "/srv/2010.stateofthemap.org/wp"
131 database_name "sotm2010"
132 database_user "sotm2010"
133 database_password passwords["sotm2010"]
134 urls "/register" => "/srv/2010.stateofthemap.org/register"
137 wordpress_theme "aerodrome" do
138 site "2010.stateofthemap.org"
139 repository "git://git.openstreetmap.org/stateofthemap.git"
140 revision "theme-2010"
143 wordpress_plugin "sitepress-multilingual-cms" do
144 site "2010.stateofthemap.org"
145 source "plugins/sitepress-multilingual-cms"
148 wordpress_plugin "wp-sticky" do
149 site "2010.stateofthemap.org"
152 directory "/srv/2011.stateofthemap.org" do
158 git "/srv/2011.stateofthemap.org" do
160 repository "git://git.openstreetmap.org/stateofthemap.git"
161 revision "resources-2011"
166 wordpress_site "2011.stateofthemap.org" do
167 aliases "2011.stateofthemap.com"
168 directory "/srv/2011.stateofthemap.org/wp"
169 database_name "sotm2011"
170 database_user "sotm2011"
171 database_password passwords["sotm2011"]
172 urls "/register" => "/srv/2011.stateofthemap.org/register"
175 wordpress_theme "aerodrome" do
176 site "2011.stateofthemap.org"
177 repository "git://git.openstreetmap.org/stateofthemap.git"
178 revision "theme-2011"
181 wordpress_plugin "sitepress-multilingual-cms" do
182 site "2011.stateofthemap.org"
183 source "plugins/sitepress-multilingual-cms"
186 wordpress_plugin "wp-sticky" do
187 site "2011.stateofthemap.org"
190 directory "/srv/2012.stateofthemap.org" do
196 git "/srv/2012.stateofthemap.org" do
198 repository "git://git.openstreetmap.org/stateofthemap.git"
199 revision "resources-2012"
204 wordpress_site "2012.stateofthemap.org" do
205 aliases "2012.stateofthemap.com"
206 directory "/srv/2012.stateofthemap.org/wp"
207 database_name "sotm2012"
208 database_user "sotm2012"
209 database_password passwords["sotm2012"]
210 urls "/register" => "/srv/2012.stateofthemap.org/register"
213 wordpress_theme "aerodrome" do
214 site "2012.stateofthemap.org"
215 repository "git://git.openstreetmap.org/stateofthemap.git"
216 revision "theme-2012"
219 wordpress_plugin "leaflet-maps-marker" do
220 site "2012.stateofthemap.org"
223 wordpress_plugin "sitepress-multilingual-cms" do
224 site "2012.stateofthemap.org"
225 source "plugins/sitepress-multilingual-cms"
228 wordpress_plugin "wp-sticky" do
229 site "2012.stateofthemap.org"
232 template "/etc/cron.daily/sotm-backup" do
233 source "backup.cron.erb"
237 variables :passwords => passwords