2 # Cookbook:: stateofthemap
5 # Copyright:: 2022, 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 # https://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_"
37 fpm_prometheus_port 12007
40 wordpress_theme "2007.stateofthemap.org-refreshwp-11" do
42 site "2007.stateofthemap.org"
43 repository "https://git.openstreetmap.org/public/stateofthemap.git"
47 # wordpress_plugin "2007.stateofthemap.org-geopress" do
49 # site "2007.stateofthemap.org"
52 directory "/srv/2008.stateofthemap.org" do
58 wordpress_site "2008.stateofthemap.org" do
59 aliases "2008.stateofthemap.com"
60 directory "/srv/2008.stateofthemap.org/wp"
61 database_name "sotm2008"
62 database_user "sotm2008"
63 database_password passwords["sotm2008"]
64 database_prefix "wp_sotm08_"
65 fpm_prometheus_port 12008
68 wordpress_theme "2008.stateofthemap.org-refreshwp-11" do
70 site "2008.stateofthemap.org"
71 repository "https://git.openstreetmap.org/public/stateofthemap.git"
75 # wordpress_plugin "2008.stateofthemap.org-geopress" do
77 # site "2008.stateofthemap.org"
80 directory "/srv/2009.stateofthemap.org" do
86 git "/srv/2009.stateofthemap.org" do
88 repository "https://git.openstreetmap.org/public/stateofthemap.git"
89 revision "resources-2009"
95 wordpress_site "2009.stateofthemap.org" do
96 aliases "2009.stateofthemap.com"
97 directory "/srv/2009.stateofthemap.org/wp"
98 database_name "sotm2009"
99 database_user "sotm2009"
100 database_password passwords["sotm2009"]
101 urls "/register" => "/srv/2009.stateofthemap.org/register",
102 "/register-pro-user" => "/srv/2009.stateofthemap.org/register-pro-user",
103 "/podcasts" => "/srv/2009.stateofthemap.org/podcasts"
104 fpm_prometheus_port 12009
107 wordpress_theme "2009.stateofthemap.org-aerodrome" do
109 site "2009.stateofthemap.org"
110 repository "https://git.openstreetmap.org/public/stateofthemap.git"
111 revision "theme-2009"
114 # wordpress_plugin "2009.stateofthemap.org-wp-sticky" do
116 # site "2009.stateofthemap.org"
119 directory "/srv/2010.stateofthemap.org" do
125 git "/srv/2010.stateofthemap.org" do
127 repository "https://git.openstreetmap.org/public/stateofthemap.git"
128 revision "resources-2010"
134 wordpress_site "2010.stateofthemap.org" do
135 aliases "2010.stateofthemap.com"
136 directory "/srv/2010.stateofthemap.org/wp"
137 database_name "sotm2010"
138 database_user "sotm2010"
139 database_password passwords["sotm2010"]
140 urls "/register" => "/srv/2010.stateofthemap.org/register"
141 fpm_prometheus_port 12010
144 wordpress_theme "2010.stateofthemap.org-aerodrome" do
146 site "2010.stateofthemap.org"
147 repository "https://git.openstreetmap.org/public/stateofthemap.git"
148 revision "theme-2010"
151 wordpress_plugin "2010.stateofthemap.org-sitepress-multilingual-cms" do
152 plugin "sitepress-multilingual-cms"
153 site "2010.stateofthemap.org"
154 repository "https://git.openstreetmap.org/private/sitepress-multilingual-cms.git"
159 # wordpress_plugin "2010.stateofthemap.org-wp-sticky" do
161 # site "2010.stateofthemap.org"
164 directory "/srv/2011.stateofthemap.org" do
170 git "/srv/2011.stateofthemap.org" do
172 repository "https://git.openstreetmap.org/public/stateofthemap.git"
173 revision "resources-2011"
179 wordpress_site "2011.stateofthemap.org" do
180 aliases "2011.stateofthemap.com"
181 directory "/srv/2011.stateofthemap.org/wp"
182 database_name "sotm2011"
183 database_user "sotm2011"
184 database_password passwords["sotm2011"]
185 urls "/register" => "/srv/2011.stateofthemap.org/register"
186 fpm_prometheus_port 12011
189 wordpress_theme "2011.stateofthemap.org-aerodrome" do
191 site "2011.stateofthemap.org"
192 repository "https://git.openstreetmap.org/public/stateofthemap.git"
193 revision "theme-2011"
196 wordpress_plugin "2011.stateofthemap.org-sitepress-multilingual-cms" do
197 plugin "sitepress-multilingual-cms"
198 site "2011.stateofthemap.org"
199 repository "https://git.openstreetmap.org/private/sitepress-multilingual-cms.git"
204 # wordpress_plugin "2011.stateofthemap.org-wp-sticky" do
206 # site "2011.stateofthemap.org"
209 directory "/srv/2012.stateofthemap.org" do
215 git "/srv/2012.stateofthemap.org" do
217 repository "https://git.openstreetmap.org/public/stateofthemap.git"
218 revision "resources-2012"
224 wordpress_site "2012.stateofthemap.org" do
225 aliases "2012.stateofthemap.com"
226 directory "/srv/2012.stateofthemap.org/wp"
227 database_name "sotm2012"
228 database_user "sotm2012"
229 database_password passwords["sotm2012"]
230 urls "/register" => "/srv/2012.stateofthemap.org/register"
231 fpm_prometheus_port 12012
234 wordpress_theme "2012.stateofthemap.org-aerodrome" do
236 site "2012.stateofthemap.org"
237 repository "https://git.openstreetmap.org/public/stateofthemap.git"
238 revision "theme-2012"
241 wordpress_plugin "2012.stateofthemap.org-leaflet-maps-marker" do
242 plugin "leaflet-maps-marker"
243 site "2012.stateofthemap.org"
246 wordpress_plugin "2012.stateofthemap.org-sitepress-multilingual-cms" do
247 plugin "sitepress-multilingual-cms"
248 site "2012.stateofthemap.org"
249 repository "https://git.openstreetmap.org/private/sitepress-multilingual-cms.git"
254 # wordpress_plugin "2012.stateofthemap.org-wp-sticky" do
256 # site "2012.stateofthemap.org"
259 template "/etc/cron.daily/sotm-backup" do
260 source "backup.cron.erb"
264 variables :passwords => passwords