From 2484d4fff9a80669db31e1a31dead9e41686ee41 Mon Sep 17 00:00:00 2001 From: Grant Slater Date: Tue, 29 Sep 2026 16:19:18 +0100 Subject: [PATCH] sotm: Delete old 2010 wordpress site --- cookbooks/stateofthemap/recipes/wordpress.rb | 43 ++++++-------------- 1 file changed, 13 insertions(+), 30 deletions(-) diff --git a/cookbooks/stateofthemap/recipes/wordpress.rb b/cookbooks/stateofthemap/recipes/wordpress.rb index bd659f682..4e3442cc6 100644 --- a/cookbooks/stateofthemap/recipes/wordpress.rb +++ b/cookbooks/stateofthemap/recipes/wordpress.rb @@ -23,33 +23,8 @@ include_recipe "wordpress" passwords = data_bag_item("stateofthemap", "passwords") wp2fa_encrypt_keys = data_bag_item("stateofthemap", "wp2fa_encrypt_keys") -directory "/srv/2010.stateofthemap.org" do - owner "wordpress" - group "wordpress" - mode "755" -end - -git "/srv/2010.stateofthemap.org" do - action :sync - repository "https://git.openstreetmap.org/public/stateofthemap.git" - revision "resources-2010" - depth 1 - user "wordpress" - group "wordpress" -end - -wordpress_site "2010.stateofthemap.org" do - aliases ["2010.stateofthemap.com", "2010.sotm.org"] - directory "/srv/2010.stateofthemap.org/wp" - database_name "sotm2010" - database_user "sotm2010" - database_password passwords["sotm2010"] - wp2fa_encrypt_key wp2fa_encrypt_keys["sotm2010"] - urls "/register" => "/srv/2010.stateofthemap.org/register" - fpm_prometheus_port 12010 -end - wordpress_theme "2010.stateofthemap.org-aerodrome" do + action :delete theme "aerodrome" site "2010.stateofthemap.org" repository "https://git.openstreetmap.org/public/stateofthemap.git" @@ -57,6 +32,7 @@ wordpress_theme "2010.stateofthemap.org-aerodrome" do end wordpress_plugin "2010.stateofthemap.org-sitepress-multilingual-cms" do + action :delete plugin "sitepress-multilingual-cms" site "2010.stateofthemap.org" repository "https://git.openstreetmap.org/private/sitepress-multilingual-cms.git" @@ -64,10 +40,17 @@ wordpress_plugin "2010.stateofthemap.org-sitepress-multilingual-cms" do not_if { kitchen? } end -# wordpress_plugin "2010.stateofthemap.org-wp-sticky" do -# plugin "wp-sticky" -# site "2010.stateofthemap.org" -# end +wordpress_site "2010.stateofthemap.org" do + action :delete + aliases ["2010.stateofthemap.com", "2010.sotm.org"] + directory "/srv/2010.stateofthemap.org/wp" + database_name "sotm2010" + database_user "sotm2010" + database_password passwords["sotm2010"] + wp2fa_encrypt_key wp2fa_encrypt_keys["sotm2010"] + urls "/register" => "/srv/2010.stateofthemap.org/register" + fpm_prometheus_port 12010 +end directory "/srv/2011.stateofthemap.org" do owner "wordpress" -- 2.47.3