From ab567991d428aff3ac1d85978f0ede655bf6ee3a Mon Sep 17 00:00:00 2001
From: Kristian Klausen <kristian@klausen.dk>
Date: Sun, 12 Jan 2025 01:05:56 +0100
Subject: [PATCH] Remove obsolete dev.archlinux.org subdomain

This was apparently hosted on the long gone "apollo" server[1], and when
archweb was migrated to a dedicated cloud VM, it was changed to a
redirect to the main site (archlinux.org)[2][3].

It may have made sense at the time, but now four years later there is no
reason for keeping this around.

I guess dev.archlinux.org was something similar to what pkgbuild.com is
today ("Public HTML server" for staff), but only for developers.

[1] f6c3af0e ("Merge branch 'apollo_decomission' into 'master'")
[2] 824fb084 ("tf-stage1/archlinux: Change DNS records for the archweb migration and also increase the machine size")
[3] 9800d023 ("roles/archweb: Create domain redirects for the domains that point to specific archweb sub urls.")
---
 roles/archweb/defaults/main.yml    | 3 +--
 roles/prometheus/defaults/main.yml | 1 -
 tf-stage1/archlinux.tf             | 1 -
 3 files changed, 1 insertion(+), 4 deletions(-)

diff --git a/roles/archweb/defaults/main.yml b/roles/archweb/defaults/main.yml
index d8b74f69f..05278a12a 100644
--- a/roles/archweb/defaults/main.yml
+++ b/roles/archweb/defaults/main.yml
@@ -1,11 +1,10 @@
 archweb_dir: '/srv/http/archweb'
 archweb_domain: 'archlinux.org'
-archweb_alternate_domains: ['www.archlinux.org', 'master-key.archlinux.org', 'dev.archlinux.org', 'packages.archlinux.org', 'planet.archlinux.org']
+archweb_alternate_domains: ['www.archlinux.org', 'master-key.archlinux.org', 'packages.archlinux.org', 'planet.archlinux.org']
 archweb_legacy_domains: ['ipxe.archlinux.org']
 archweb_domains_redirects:
         'www.archlinux.org': '$request_uri'
         'master-key.archlinux.org': '/master-keys/'
-        'dev.archlinux.org': '/'
         'packages.archlinux.org': '/packages$request_uri'
         'planet.archlinux.org': '/planet$request_uri'
 archweb_domains_templates:
diff --git a/roles/prometheus/defaults/main.yml b/roles/prometheus/defaults/main.yml
index 080222520..da3089f55 100644
--- a/roles/prometheus/defaults/main.yml
+++ b/roles/prometheus/defaults/main.yml
@@ -44,7 +44,6 @@ blackbox_targets:
     - https://conf.archlinux.org
     - https://dashboards.archlinux.org/healthz
     - https://debuginfod.archlinux.org
-    - https://dev.archlinux.org
     - https://europe.archive.pkgbuild.com
     - https://europe.mirror.pkgbuild.com
     - https://gitlab.archlinux.org
diff --git a/tf-stage1/archlinux.tf b/tf-stage1/archlinux.tf
index ec6297a32..e1285d3bf 100644
--- a/tf-stage1/archlinux.tf
+++ b/tf-stage1/archlinux.tf
@@ -301,7 +301,6 @@ locals {
   # dev                      = { value = "www", ttl = 3600 }
   archlinux_org_cname = {
     archive         = { value = "gemini" }
-    dev             = { value = "www" }
     ipxe            = { value = "www" }
     mailman         = { value = "redirect" }
     packages        = { value = "www" }
-- 
GitLab