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("blog", "passwords")
24 directory "/srv/blog.openstreetmap.org" do
30 wordpress_site "blog.openstreetmap.org" do
31 aliases ["blog.osm.org", "blog.openstreetmap.com",
32 "blog.openstreetmap.net", "blog.openstreetmaps.org",
33 "blog.osmfoundation.org"]
35 directory "/srv/blog.openstreetmap.org/wp"
36 database_name "osm-blog"
37 database_user "osm-blog-user"
38 database_password passwords["osm-blog-user"]
39 urls "/casts" => "/srv/blog.openstreetmap.org/casts",
40 "/images" => "/srv/blog.openstreetmap.org/images",
41 "/static" => "/srv/blog.openstreetmap.org/static"
44 wordpress_theme "osmblog-wp-theme" do
45 site "blog.openstreetmap.org"
46 repository "git://github.com/harry-wood/osmblog-wp-theme.git"
49 wordpress_plugin "google-analytics-for-wordpress" do
50 site "blog.openstreetmap.org"
53 wordpress_plugin "google-sitemap-generator" do
54 site "blog.openstreetmap.org"
57 wordpress_plugin "shareadraft" do
58 site "blog.openstreetmap.org"
61 wordpress_plugin "sitepress-multilingual-cms" do
62 site "blog.openstreetmap.org"
63 repository "git://chef.openstreetmap.org/sitepress-multilingual-cms.git"
66 wordpress_plugin "wordpress-importer" do
67 site "blog.openstreetmap.org"
70 git "/srv/blog.openstreetmap.org/casts" do
72 repository "git://github.com/openstreetmap/opengeodata-podcasts.git"
78 git "/srv/blog.openstreetmap.org/images" do
80 repository "git://github.com/openstreetmap/opengeodata-images.git"
86 git "/srv/blog.openstreetmap.org/static" do
88 repository "git://github.com/openstreetmap/opengeodata-static.git"
94 apache_site "opengeodata.org" do
95 template "opengeodata.erb"
96 directory "/srv/opengeodata.org"
99 template "/etc/cron.daily/blog-backup" do
100 source "backup.cron.erb"
104 variables :passwords => passwords