2 # Cookbook:: stateofthemap
 
   5 # Copyright:: 2022, 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 #     https://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 "stateofthemap"
 
  21 include_recipe "wordpress"
 
  23 passwords = data_bag_item("stateofthemap", "passwords")
 
  25 directory "/srv/2007.stateofthemap.org" do
 
  31 wordpress_site "2007.stateofthemap.org" do
 
  32   aliases "2007.stateofthemap.com"
 
  33   directory "/srv/2007.stateofthemap.org/wp"
 
  34   database_name "sotm2007"
 
  35   database_user "sotm2007"
 
  36   database_password passwords["sotm2007"]
 
  37   database_prefix "wp_sotm_"
 
  38   fpm_prometheus_port 12007
 
  41 wordpress_theme "2007.stateofthemap.org-refreshwp-11" do
 
  43   site "2007.stateofthemap.org"
 
  44   repository "https://git.openstreetmap.org/public/stateofthemap.git"
 
  48 # wordpress_plugin "2007.stateofthemap.org-geopress" do
 
  50 #   site "2007.stateofthemap.org"
 
  53 directory "/srv/2008.stateofthemap.org" do
 
  59 wordpress_site "2008.stateofthemap.org" do
 
  60   aliases "2008.stateofthemap.com"
 
  61   directory "/srv/2008.stateofthemap.org/wp"
 
  62   database_name "sotm2008"
 
  63   database_user "sotm2008"
 
  64   database_password passwords["sotm2008"]
 
  65   database_prefix "wp_sotm08_"
 
  66   fpm_prometheus_port 12008
 
  69 wordpress_theme "2008.stateofthemap.org-refreshwp-11" do
 
  71   site "2008.stateofthemap.org"
 
  72   repository "https://git.openstreetmap.org/public/stateofthemap.git"
 
  76 # wordpress_plugin "2008.stateofthemap.org-geopress" do
 
  78 #   site "2008.stateofthemap.org"
 
  81 directory "/srv/2009.stateofthemap.org" do
 
  87 git "/srv/2009.stateofthemap.org" do
 
  89   repository "https://git.openstreetmap.org/public/stateofthemap.git"
 
  90   revision "resources-2009"
 
  96 wordpress_site "2009.stateofthemap.org" do
 
  97   aliases "2009.stateofthemap.com"
 
  98   directory "/srv/2009.stateofthemap.org/wp"
 
  99   database_name "sotm2009"
 
 100   database_user "sotm2009"
 
 101   database_password passwords["sotm2009"]
 
 102   urls "/register" => "/srv/2009.stateofthemap.org/register",
 
 103        "/register-pro-user" => "/srv/2009.stateofthemap.org/register-pro-user",
 
 104        "/podcasts" => "/srv/2009.stateofthemap.org/podcasts"
 
 105   fpm_prometheus_port 12009
 
 108 wordpress_theme "2009.stateofthemap.org-aerodrome" do
 
 110   site "2009.stateofthemap.org"
 
 111   repository "https://git.openstreetmap.org/public/stateofthemap.git"
 
 112   revision "theme-2009"
 
 115 # wordpress_plugin "2009.stateofthemap.org-wp-sticky" do
 
 117 #   site "2009.stateofthemap.org"
 
 120 directory "/srv/2010.stateofthemap.org" do
 
 126 git "/srv/2010.stateofthemap.org" do
 
 128   repository "https://git.openstreetmap.org/public/stateofthemap.git"
 
 129   revision "resources-2010"
 
 135 wordpress_site "2010.stateofthemap.org" do
 
 136   aliases "2010.stateofthemap.com"
 
 137   directory "/srv/2010.stateofthemap.org/wp"
 
 138   database_name "sotm2010"
 
 139   database_user "sotm2010"
 
 140   database_password passwords["sotm2010"]
 
 141   urls "/register" => "/srv/2010.stateofthemap.org/register"
 
 142   fpm_prometheus_port 12010
 
 145 wordpress_theme "2010.stateofthemap.org-aerodrome" do
 
 147   site "2010.stateofthemap.org"
 
 148   repository "https://git.openstreetmap.org/public/stateofthemap.git"
 
 149   revision "theme-2010"
 
 152 wordpress_plugin "2010.stateofthemap.org-sitepress-multilingual-cms" do
 
 153   plugin "sitepress-multilingual-cms"
 
 154   site "2010.stateofthemap.org"
 
 155   repository "https://git.openstreetmap.org/private/sitepress-multilingual-cms.git"
 
 160 # wordpress_plugin "2010.stateofthemap.org-wp-sticky" do
 
 162 #   site "2010.stateofthemap.org"
 
 165 directory "/srv/2011.stateofthemap.org" do
 
 171 git "/srv/2011.stateofthemap.org" do
 
 173   repository "https://git.openstreetmap.org/public/stateofthemap.git"
 
 174   revision "resources-2011"
 
 180 wordpress_site "2011.stateofthemap.org" do
 
 181   aliases "2011.stateofthemap.com"
 
 182   directory "/srv/2011.stateofthemap.org/wp"
 
 183   database_name "sotm2011"
 
 184   database_user "sotm2011"
 
 185   database_password passwords["sotm2011"]
 
 186   urls "/register" => "/srv/2011.stateofthemap.org/register"
 
 187   fpm_prometheus_port 12011
 
 190 wordpress_theme "2011.stateofthemap.org-aerodrome" do
 
 192   site "2011.stateofthemap.org"
 
 193   repository "https://git.openstreetmap.org/public/stateofthemap.git"
 
 194   revision "theme-2011"
 
 197 wordpress_plugin "2011.stateofthemap.org-sitepress-multilingual-cms" do
 
 198   plugin "sitepress-multilingual-cms"
 
 199   site "2011.stateofthemap.org"
 
 200   repository "https://git.openstreetmap.org/private/sitepress-multilingual-cms.git"
 
 205 # wordpress_plugin "2011.stateofthemap.org-wp-sticky" do
 
 207 #   site "2011.stateofthemap.org"
 
 210 directory "/srv/2012.stateofthemap.org" do
 
 216 git "/srv/2012.stateofthemap.org" do
 
 218   repository "https://git.openstreetmap.org/public/stateofthemap.git"
 
 219   revision "resources-2012"
 
 225 wordpress_site "2012.stateofthemap.org" do
 
 226   aliases "2012.stateofthemap.com"
 
 227   directory "/srv/2012.stateofthemap.org/wp"
 
 228   database_name "sotm2012"
 
 229   database_user "sotm2012"
 
 230   database_password passwords["sotm2012"]
 
 231   urls "/register" => "/srv/2012.stateofthemap.org/register"
 
 232   fpm_prometheus_port 12012
 
 235 wordpress_theme "2012.stateofthemap.org-aerodrome" do
 
 237   site "2012.stateofthemap.org"
 
 238   repository "https://git.openstreetmap.org/public/stateofthemap.git"
 
 239   revision "theme-2012"
 
 242 wordpress_plugin "2012.stateofthemap.org-leaflet-maps-marker" do
 
 243   plugin "leaflet-maps-marker"
 
 244   site "2012.stateofthemap.org"
 
 247 wordpress_plugin "2012.stateofthemap.org-sitepress-multilingual-cms" do
 
 248   plugin "sitepress-multilingual-cms"
 
 249   site "2012.stateofthemap.org"
 
 250   repository "https://git.openstreetmap.org/private/sitepress-multilingual-cms.git"
 
 255 # wordpress_plugin "2012.stateofthemap.org-wp-sticky" do
 
 257 #   site "2012.stateofthemap.org"
 
 260 template "/etc/cron.daily/sotm-backup" do
 
 261   source "backup.cron.erb"
 
 265   variables :passwords => passwords