2 # Cookbook Name:: switch2osm
 
   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("switch2osm", "passwords")
 
  24 wordpress_site "switch2osm.org" do
 
  25   aliases ["www.switch2osm.org", "switch2osm.com", "www.switch2osm.com"]
 
  26   directory "/srv/switch2osm.org"
 
  28   database_name "switch2osm-blog"
 
  29   database_user "switch2osm-user"
 
  30   database_password passwords["switch2osm-user"]
 
  33 wordpress_theme "picolight" do
 
  35   repository "git://github.com/Firefishy/picolight-s2o.git"
 
  39 wordpress_plugin "sitepress-multilingual-cms" do
 
  41   repository "git://chef.openstreetmap.org/sitepress-multilingual-cms.git"
 
  44 wordpress_plugin "wpml-cms-nav" do
 
  46   repository "git://chef.openstreetmap.org/wpml-cms-nav.git"
 
  49 wordpress_plugin "wpml-sticky-links" do
 
  51   repository "git://chef.openstreetmap.org/wpml-sticky-links.git"
 
  54 wordpress_plugin "wpml-string-translation" do
 
  56   repository "git://chef.openstreetmap.org/wpml-string-translation.git"
 
  59 wordpress_plugin "wpml-translation-analytics" do
 
  61   repository "git://chef.openstreetmap.org/wpml-translation-analytics.git"
 
  64 wordpress_plugin "wpml-translation-management" do
 
  66   repository "git://chef.openstreetmap.org/wpml-translation-management.git"
 
  69 wordpress_plugin "wpml-xliff" do
 
  71   repository "git://chef.openstreetmap.org/wpml-xliff.git"
 
  74 template "/etc/cron.daily/switch2osm-backup" do
 
  75   source "backup.cron.erb"
 
  79   variables :passwords => passwords