]> git.openstreetmap.org Git - chef.git/blob - cookbooks/stateofthemap/recipes/default.rb
Pull sitepress-multilingual-cms wordpress plugin from local repository
[chef.git] / cookbooks / stateofthemap / recipes / default.rb
1 #
2 # Cookbook Name:: stateofthemap
3 # Recipe:: default
4 #
5 # Copyright 2013, OpenStreetMap Foundation
6 #
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
10 #
11 #     http://www.apache.org/licenses/LICENSE-2.0
12 #
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.
18 #
19
20 include_recipe "wordpress"
21
22 passwords = data_bag_item("stateofthemap", "passwords")
23
24 directory "/srv/2007.stateofthemap.org" do
25   owner "wordpress"
26   group "wordpress"
27   mode 0755
28 end
29
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 end
38
39 wordpress_theme "refreshwp-11" do
40   site "2007.stateofthemap.org"
41   repository "git://git.openstreetmap.org/stateofthemap.git"
42   revision "theme-2007"
43 end
44
45 wordpress_plugin "geopress" do
46   site "2007.stateofthemap.org"
47 end
48
49 wordpress_plugin "sem-static-front" do
50   site "2007.stateofthemap.org"
51   repository "git://chef.openstreetmap.org/sem-static-front.git"
52 end
53
54 directory "/srv/2008.stateofthemap.org" do
55   owner "wordpress"
56   group "wordpress"
57   mode 0755
58 end
59
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_"
67 end
68
69 wordpress_theme "refreshwp-11" do
70   site "2008.stateofthemap.org"
71   repository "git://git.openstreetmap.org/stateofthemap.git"
72   revision "theme-2008"
73 end
74
75 wordpress_plugin "geopress" do
76   site "2008.stateofthemap.org"
77 end
78
79 directory "/srv/2009.stateofthemap.org" do
80   owner "wordpress"
81   group "wordpress"
82   mode 0755
83 end
84
85 git "/srv/2009.stateofthemap.org" do
86   action :sync
87   repository "git://git.openstreetmap.org/stateofthemap.git"
88   revision "resources-2009"
89   user "wordpress"
90   group "wordpress"
91 end
92
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"
102 end
103
104 wordpress_theme "aerodrome" do
105   site "2009.stateofthemap.org"
106   repository "git://git.openstreetmap.org/stateofthemap.git"
107   revision "theme-2009"
108 end
109
110 wordpress_plugin "wp-sticky" do
111   site "2009.stateofthemap.org"
112 end
113
114 directory "/srv/2010.stateofthemap.org" do
115   owner "wordpress"
116   group "wordpress"
117   mode 0755
118 end
119
120 git "/srv/2010.stateofthemap.org" do
121   action :sync
122   repository "git://git.openstreetmap.org/stateofthemap.git"
123   revision "resources-2010"
124   user "wordpress"
125   group "wordpress"
126 end
127
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"
135 end
136
137 wordpress_theme "aerodrome" do
138   site "2010.stateofthemap.org"
139   repository "git://git.openstreetmap.org/stateofthemap.git"
140   revision "theme-2010"
141 end
142
143 wordpress_plugin "sitepress-multilingual-cms" do
144   site "2010.stateofthemap.org"
145   repository "git://chef.openstreetmap.org/sitepress-multilingual-cms.git"
146 end
147
148 wordpress_plugin "wp-sticky" do
149   site "2010.stateofthemap.org"
150 end
151
152 directory "/srv/2011.stateofthemap.org" do
153   owner "wordpress"
154   group "wordpress"
155   mode 0755
156 end
157
158 git "/srv/2011.stateofthemap.org" do
159   action :sync
160   repository "git://git.openstreetmap.org/stateofthemap.git"
161   revision "resources-2011"
162   user "wordpress"
163   group "wordpress"
164 end
165
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"
173 end
174
175 wordpress_theme "aerodrome" do
176   site "2011.stateofthemap.org"
177   repository "git://git.openstreetmap.org/stateofthemap.git"
178   revision "theme-2011"
179 end
180
181 wordpress_plugin "sitepress-multilingual-cms" do
182   site "2011.stateofthemap.org"
183   repository "git://chef.openstreetmap.org/sitepress-multilingual-cms.git"
184 end
185
186 wordpress_plugin "wp-sticky" do
187   site "2011.stateofthemap.org"
188 end
189
190 directory "/srv/2012.stateofthemap.org" do
191   owner "wordpress"
192   group "wordpress"
193   mode 0755
194 end
195
196 git "/srv/2012.stateofthemap.org" do
197   action :sync
198   repository "git://git.openstreetmap.org/stateofthemap.git"
199   revision "resources-2012"
200   user "wordpress"
201   group "wordpress"
202 end
203
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"
211 end
212
213 wordpress_theme "aerodrome" do
214   site "2012.stateofthemap.org"
215   repository "git://git.openstreetmap.org/stateofthemap.git"
216   revision "theme-2012"
217 end
218
219 wordpress_plugin "leaflet-maps-marker" do
220   site "2012.stateofthemap.org"
221 end
222
223 wordpress_plugin "sitepress-multilingual-cms" do
224   site "2012.stateofthemap.org"
225   repository "git://chef.openstreetmap.org/sitepress-multilingual-cms.git"
226 end
227
228 wordpress_plugin "wp-sticky" do
229   site "2012.stateofthemap.org"
230 end
231
232 template "/etc/cron.daily/sotm-backup" do
233   source "backup.cron.erb"
234   owner "root"
235   group "root"
236   mode 0750
237   variables :passwords => passwords
238 end