From f386dd27177d88972eef0443cdb556da599cb486 Mon Sep 17 00:00:00 2001 From: Takwa Date: Tue, 24 Nov 2026 14:25:52 +0100 Subject: [PATCH 1/6] Add indexers-ams1, the Amsterdam indexer on Cherry New box in the indexers group (84.32.186.112, Cherry's "innocent-bonefish"), laid out like indexers-chic1: Debian 13, a 300 GB RAID1 for the OS, and an md RAID5 with XFS at /ipni built by site.yml from the rest of each disk. Its three Kingston NVMe drives were switched to 4096-byte sectors before the install. Not for merging until the box is built and its host key is pinned in inventory/known_hosts: CI's site.yml cannot build a fresh box. Co-Authored-By: Claude Sonnet 5.5 --- host_vars/indexers-ams1/main.yml | 23 +++++++++++++++++++++++ inventory/hosts.yml | 2 ++ 2 files changed, 25 insertions(+) create mode 100644 host_vars/indexers-ams1/main.yml diff --git a/host_vars/indexers-ams1/main.yml b/host_vars/indexers-ams1/main.yml new file mode 100644 index 0000000..563edc6 --- /dev/null +++ b/host_vars/indexers-ams1/main.yml @@ -0,0 +1,23 @@ +# Cherry Servers, Amsterdam. Delivered as "innocent-bonefish"; site.yml renames +# it to its inventory name, indexers-ams1, the hostname and the k3s node name. +site: amsterdam # the location, for the site= node label + +# The indexer layout (README, "Indexer boxes"), installed by hand first: Debian +# 13 on an md RAID1 (ext4, /, 300 GB) over partition 2 of the three 14 TB NVMe +# disks, the rest of each disk left unallocated, all three switched to +# 4096-byte sectors before the install. site.yml then creates partition 3 on +# each disk, one md RAID5 over the three (/dev/md/ipni), and XFS (label +# ipnidata) on it at data_mount (/ipni), about 28 TB. +storage_mode: md_xfs +storage_md: + name: ipni + level: 5 + partition_number: 3 + # Whole disks, by /dev/disk/by-id (nvme-_, without -partN), + # from `ls -l /dev/disk/by-id/` on the installed box: Kingston SEDC3000ME15T3, + # in the order nvme0n1, nvme1n1, nvme2n1. All three were switched to + # 4096-byte sectors before the install (README, "Indexer boxes"). + disks: + - /dev/disk/by-id/nvme-KINGSTON_SEDC3000ME15T3_TW254700244 + - /dev/disk/by-id/nvme-KINGSTON_SEDC3000ME15T3_TW261701564 + - /dev/disk/by-id/nvme-KINGSTON_SEDC3000ME15T3_TW254700686 diff --git a/inventory/hosts.yml b/inventory/hosts.yml index da1de5a..b53264e 100644 --- a/inventory/hosts.yml +++ b/inventory/hosts.yml @@ -41,6 +41,8 @@ all: hosts: indexers-chic1: ansible_host: 84.32.71.3 + indexers-ams1: + ansible_host: 84.32.186.112 # Every box site.yml and k3s-upgrade.yml manage, and where their shared # settings live (group_vars/managed_boxes). Membership is listed here, not From 640f12ec7579d9fe465fdfb7b4af2419b4da1c50 Mon Sep 17 00:00:00 2001 From: Takwa Date: Tue, 24 Nov 2026 14:40:48 +0100 Subject: [PATCH 2/6] Remove Cherry's 01-cherry.conf sshd drop-in on the indexers Cherry's current Debian 13 image ships /etc/ssh/sshd_config.d/01-cherry.conf with PermitRootLogin yes and PasswordAuthentication yes. It sorts before 99-hardening.conf and sshd takes the first value it reads, so it won: the hardening role's sshd -T check failed on indexers-ams1 (2026-11-24). indexers-chic1, built from the earlier image, does not have the file. Removed under hardening_fix_cloud_init_sshd, beside the 50-cloud-init.conf removal, so only the indexers are affected. Co-Authored-By: Claude Sonnet 5.5 --- roles/hardening/tasks/main.yml | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/roles/hardening/tasks/main.yml b/roles/hardening/tasks/main.yml index f94f722..5acd5df 100644 --- a/roles/hardening/tasks/main.yml +++ b/roles/hardening/tasks/main.yml @@ -261,6 +261,17 @@ notify: Reload sshd when: hardening_fix_cloud_init_sshd | bool +# Cherry's Debian 13 image also ships its own 01-cherry.conf, with +# PermitRootLogin yes and PasswordAuthentication yes. It sorts before +# 99-hardening.conf, so it wins the same way (found on indexers-ams1, +# 2026-11-24, by the sshd -T check below). +- name: Remove Cherry's sshd drop-in, which overrides 99-hardening.conf + ansible.builtin.file: + path: /etc/ssh/sshd_config.d/01-cherry.conf + state: absent + notify: Reload sshd + when: hardening_fix_cloud_init_sshd | bool + # Post-quantum hybrid key exchange, offered ahead of the classical algorithms # so OpenSSH 10 clients stop warning. sshd refuses to start on a name it does # not know, and mlkem768x25519-sha256 needs OpenSSH 9.9: Ubuntu 24.04 has 9.6 From c2716c70bd526fe334fb7942e12a2f5ee99db10a Mon Sep 17 00:00:00 2001 From: Takwa Date: Tue, 24 Nov 2026 14:41:16 +0100 Subject: [PATCH 3/6] Start indexers-ams1's host_vars with the YAML document marker ansible-lint (yaml[document-start]) failed the PR's CI on the missing "---". Co-Authored-By: Claude Sonnet 5.5 --- host_vars/indexers-ams1/main.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/host_vars/indexers-ams1/main.yml b/host_vars/indexers-ams1/main.yml index 563edc6..d513ae6 100644 --- a/host_vars/indexers-ams1/main.yml +++ b/host_vars/indexers-ams1/main.yml @@ -1,3 +1,4 @@ +--- # Cherry Servers, Amsterdam. Delivered as "innocent-bonefish"; site.yml renames # it to its inventory name, indexers-ams1, the hostname and the k3s node name. site: amsterdam # the location, for the site= node label From baba9b1180a2f76fb210e89d6b6ce7a68f62a99e Mon Sep 17 00:00:00 2001 From: Takwa Date: Tue, 24 Nov 2026 14:55:50 +0100 Subject: [PATCH 4/6] Match indexers-ams1's disk sizes to the README: 15.36 TB, about 27 TiB Co-Authored-By: Claude Sonnet 5.5 --- host_vars/indexers-ams1/main.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/host_vars/indexers-ams1/main.yml b/host_vars/indexers-ams1/main.yml index d513ae6..9528853 100644 --- a/host_vars/indexers-ams1/main.yml +++ b/host_vars/indexers-ams1/main.yml @@ -4,11 +4,11 @@ site: amsterdam # the location, for the site= node label # The indexer layout (README, "Indexer boxes"), installed by hand first: Debian -# 13 on an md RAID1 (ext4, /, 300 GB) over partition 2 of the three 14 TB NVMe +# 13 on an md RAID1 (ext4, /, 300 GB) over partition 2 of the three 15.36 TB NVMe # disks, the rest of each disk left unallocated, all three switched to # 4096-byte sectors before the install. site.yml then creates partition 3 on # each disk, one md RAID5 over the three (/dev/md/ipni), and XFS (label -# ipnidata) on it at data_mount (/ipni), about 28 TB. +# ipnidata) on it at data_mount (/ipni), about 27 TiB. storage_mode: md_xfs storage_md: name: ipni From 8266176192c7e762ab6c6c02a8670e4e974c4023 Mon Sep 17 00:00:00 2001 From: Takwa Date: Tue, 24 Nov 2026 16:44:25 +0100 Subject: [PATCH 5/6] Pin indexers-ams1's SSH host key Checked three ways on 2026-11-24, the same as the other entries: the key ssh-keyscan returns for 84.32.186.112, the key file on the box (/etc/ssh/ssh_host_ed25519_key.pub) and an operator's known_hosts all agree. CI connects only to pinned keys, so this lets its site.yml runs reach the box. Co-Authored-By: Claude Sonnet 5.5 --- inventory/known_hosts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/inventory/known_hosts b/inventory/known_hosts index cabd0e7..2e91291 100644 --- a/inventory/known_hosts +++ b/inventory/known_hosts @@ -8,6 +8,9 @@ 84.32.48.211 ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIGsaCZG1aU29AqxU84RhnxlMdYyvzz1f2hBhpaYu2gHR # indexers-chic1 (indexers), checked the same three ways on 2026-11-06. 84.32.71.3 ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAINFZSi4Q+Q6J7KtS6QL9hK9WHDSwIXDQeVcxaICYxfJr +# indexers-ams1 (indexers), checked the same three ways on 2026-11-24. Rebuilt +# that day, so the key is the one the fresh install generated. +84.32.186.112 ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIFHlX399zJppGly71Lw3EE6m9x0Q9RE8OShafG0/80/q # sf and sf2 (infra_boxes, cve.yml), on port 5222, so in ssh's [ip]:port form # (ssh-keyscan -t ed25519 -p 5222 ). Checked the same three ways on # 2026-10-30. From 48b5e55af8497868ab86f3976346897dcac480d2 Mon Sep 17 00:00:00 2001 From: Takwa Date: Tue, 24 Nov 2026 18:18:59 +0100 Subject: [PATCH 6/6] Rename indexers-ams1 to indexers-amst1 The box's hostname in Cherry's rebuild is indexers-amst1. Renamed the inventory entry and host_vars directory to match, and the references in comments. Co-Authored-By: Claude Sonnet 5.5 --- host_vars/{indexers-ams1 => indexers-amst1}/main.yml | 2 +- inventory/hosts.yml | 2 +- inventory/known_hosts | 2 +- roles/hardening/tasks/main.yml | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) rename host_vars/{indexers-ams1 => indexers-amst1}/main.yml (93%) diff --git a/host_vars/indexers-ams1/main.yml b/host_vars/indexers-amst1/main.yml similarity index 93% rename from host_vars/indexers-ams1/main.yml rename to host_vars/indexers-amst1/main.yml index 9528853..bc786d5 100644 --- a/host_vars/indexers-ams1/main.yml +++ b/host_vars/indexers-amst1/main.yml @@ -1,6 +1,6 @@ --- # Cherry Servers, Amsterdam. Delivered as "innocent-bonefish"; site.yml renames -# it to its inventory name, indexers-ams1, the hostname and the k3s node name. +# it to its inventory name, indexers-amst1, the hostname and the k3s node name. site: amsterdam # the location, for the site= node label # The indexer layout (README, "Indexer boxes"), installed by hand first: Debian diff --git a/inventory/hosts.yml b/inventory/hosts.yml index b53264e..d5dc36c 100644 --- a/inventory/hosts.yml +++ b/inventory/hosts.yml @@ -41,7 +41,7 @@ all: hosts: indexers-chic1: ansible_host: 84.32.71.3 - indexers-ams1: + indexers-amst1: ansible_host: 84.32.186.112 # Every box site.yml and k3s-upgrade.yml manage, and where their shared diff --git a/inventory/known_hosts b/inventory/known_hosts index 2e91291..32c9aa1 100644 --- a/inventory/known_hosts +++ b/inventory/known_hosts @@ -8,7 +8,7 @@ 84.32.48.211 ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIGsaCZG1aU29AqxU84RhnxlMdYyvzz1f2hBhpaYu2gHR # indexers-chic1 (indexers), checked the same three ways on 2026-11-06. 84.32.71.3 ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAINFZSi4Q+Q6J7KtS6QL9hK9WHDSwIXDQeVcxaICYxfJr -# indexers-ams1 (indexers), checked the same three ways on 2026-11-24. Rebuilt +# indexers-amst1 (indexers), checked the same three ways on 2026-11-24. Rebuilt # that day, so the key is the one the fresh install generated. 84.32.186.112 ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIFHlX399zJppGly71Lw3EE6m9x0Q9RE8OShafG0/80/q # sf and sf2 (infra_boxes, cve.yml), on port 5222, so in ssh's [ip]:port form diff --git a/roles/hardening/tasks/main.yml b/roles/hardening/tasks/main.yml index 5acd5df..317de8d 100644 --- a/roles/hardening/tasks/main.yml +++ b/roles/hardening/tasks/main.yml @@ -263,7 +263,7 @@ # Cherry's Debian 13 image also ships its own 01-cherry.conf, with # PermitRootLogin yes and PasswordAuthentication yes. It sorts before -# 99-hardening.conf, so it wins the same way (found on indexers-ams1, +# 99-hardening.conf, so it wins the same way (found on indexers-amst1, # 2026-11-24, by the sshd -T check below). - name: Remove Cherry's sshd drop-in, which overrides 99-hardening.conf ansible.builtin.file: