# limitations under the License.
#
-node.default[:ssl][:certificates] = node[:ssl][:certificates] | ["osmfoundation"]
-
include_recipe "wordpress"
passwords = data_bag_item("blog", "passwords")
"blog.openstreetmap.net", "blog.openstreetmaps.org",
"blog.osmfoundation.org"]
ssl_enabled true
- ssl_certificate "osmfoundation"
- ssl_certificate_chain "startcom"
directory "/srv/blog.openstreetmap.org/wp"
database_name "osm-blog"
database_user "osm-blog-user"
database_password passwords["osm-blog-user"]
urls "/casts" => "/srv/blog.openstreetmap.org/casts",
"/images" => "/srv/blog.openstreetmap.org/images",
- "/news" => "/srv/blog.openstreetmap.org/news"
+ "/static" => "/srv/blog.openstreetmap.org/static"
end
wordpress_theme "osmblog-wp-theme" do
group "wordpress"
end
+git "/srv/blog.openstreetmap.org/static" do
+ action :sync
+ repository "git://github.com/openstreetmap/opengeodata-static.git"
+ depth 1
+ user "wordpress"
+ group "wordpress"
+end
+
apache_site "opengeodata.org" do
template "opengeodata.erb"
directory "/srv/opengeodata.org"