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 node.default[:ssl][:certificates] = node[:ssl][:certificates] | ["osmfoundation"]
22 include_recipe "wordpress"
24 passwords = data_bag_item("blog", "passwords")
26 directory "/srv/blog.openstreetmap.org" do
32 wordpress_site "blog.openstreetmap.org" do
33 aliases ["blog.osm.org", "blog.openstreetmap.com",
34 "blog.openstreetmap.net", "blog.openstreetmaps.org",
35 "blog.osmfoundation.org"]
37 directory "/srv/blog.openstreetmap.org/wp"
38 database_name "osm-blog"
39 database_user "osm-blog-user"
40 database_password passwords["osm-blog-user"]
41 urls "/casts" => "/srv/blog.openstreetmap.org/casts",
42 "/images" => "/srv/blog.openstreetmap.org/images",
43 "/news" => "/srv/blog.openstreetmap.org/news"
46 wordpress_theme "osmblog-wp-theme" do
47 site "blog.openstreetmap.org"
48 repository "git://github.com/harry-wood/osmblog-wp-theme.git"
51 wordpress_plugin "google-analytics-for-wordpress" do
52 site "blog.openstreetmap.org"
55 wordpress_plugin "google-sitemap-generator" do
56 site "blog.openstreetmap.org"
59 wordpress_plugin "shareadraft" do
60 site "blog.openstreetmap.org"
63 wordpress_plugin "sitepress-multilingual-cms" do
64 site "blog.openstreetmap.org"
65 repository "git://chef.openstreetmap.org/sitepress-multilingual-cms.git"
68 wordpress_plugin "wordpress-importer" do
69 site "blog.openstreetmap.org"
72 git "/srv/blog.openstreetmap.org/casts" do
74 repository "git://github.com/openstreetmap/opengeodata-podcasts.git"
80 git "/srv/blog.openstreetmap.org/images" do
82 repository "git://github.com/openstreetmap/opengeodata-images.git"
88 apache_site "opengeodata.org" do
89 template "opengeodata.erb"
90 directory "/srv/opengeodata.org"
93 template "/etc/cron.daily/blog-backup" do
94 source "backup.cron.erb"
98 variables :passwords => passwords