]> git.openstreetmap.org Git - chef.git/blob - cookbooks/switch2osm/recipes/default.rb
imagery: try keep memory usage under control
[chef.git] / cookbooks / switch2osm / recipes / default.rb
1 #
2 # Cookbook Name:: switch2osm
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 #     https://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("switch2osm", "passwords")
23
24 wordpress_site "switch2osm.org" do
25   aliases ["www.switch2osm.org", "switch2osm.com", "www.switch2osm.com"]
26   directory "/srv/switch2osm.org"
27   database_name "switch2osm-blog"
28   database_user "switch2osm-user"
29   database_password passwords["switch2osm-user"]
30 end
31
32 wordpress_theme "switch2osm.org-picolight" do
33   theme "picolight"
34   site "switch2osm.org"
35   repository "git://github.com/Firefishy/picolight-s2o.git"
36   revision "master"
37 end
38
39 wordpress_plugin "switch2osm.org-sitepress-multilingual-cms" do
40   plugin "sitepress-multilingual-cms"
41   site "switch2osm.org"
42   repository "https://git.openstreetmap.org/private/sitepress-multilingual-cms.git"
43 end
44
45 wordpress_plugin "switch2osm.org-wpml-cms-nav" do
46   plugin "wpml-cms-nav"
47   site "switch2osm.org"
48   repository "https://git.openstreetmap.org/private/wpml-cms-nav.git"
49 end
50
51 wordpress_plugin "switch2osm.org-wpml-sticky-links" do
52   plugin "wpml-sticky-links"
53   site "switch2osm.org"
54   repository "https://git.openstreetmap.org/private/wpml-sticky-links.git"
55 end
56
57 wordpress_plugin "switch2osm.org-wpml-string-translation" do
58   plugin "wpml-string-translation"
59   site "switch2osm.org"
60   repository "https://git.openstreetmap.org/private/wpml-string-translation.git"
61 end
62
63 wordpress_plugin "switch2osm.org-wpml-translation-analytics" do
64   plugin "wpml-translation-analytics"
65   site "switch2osm.org"
66   repository "https://git.openstreetmap.org/private/wpml-translation-analytics.git"
67 end
68
69 wordpress_plugin "switch2osm.org-wpml-translation-management" do
70   plugin "wpml-translation-management"
71   site "switch2osm.org"
72   repository "https://git.openstreetmap.org/private/wpml-translation-management.git"
73 end
74
75 wordpress_plugin "switch2osm.org-wpml-xliff" do
76   plugin "wpml-xliff"
77   site "switch2osm.org"
78   repository "https://git.openstreetmap.org/private/wpml-xliff.git"
79 end
80
81 template "/etc/cron.daily/switch2osm-backup" do
82   source "backup.cron.erb"
83   owner "root"
84   group "root"
85   mode 0o750
86   variables :passwords => passwords
87 end