diff --git a/host_vars/indexers-amst1/main.yml b/host_vars/indexers-amst1/main.yml new file mode 100644 index 0000000..bc786d5 --- /dev/null +++ b/host_vars/indexers-amst1/main.yml @@ -0,0 +1,24 @@ +--- +# Cherry Servers, Amsterdam. Delivered as "innocent-bonefish"; site.yml renames +# 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 +# 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 27 TiB. +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..d5dc36c 100644 --- a/inventory/hosts.yml +++ b/inventory/hosts.yml @@ -41,6 +41,8 @@ all: hosts: indexers-chic1: ansible_host: 84.32.71.3 + indexers-amst1: + 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 diff --git a/inventory/known_hosts b/inventory/known_hosts index cabd0e7..32c9aa1 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-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 # (ssh-keyscan -t ed25519 -p 5222 ). Checked the same three ways on # 2026-10-30. diff --git a/roles/hardening/tasks/main.yml b/roles/hardening/tasks/main.yml index f94f722..317de8d 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-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: + 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