Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 24 additions & 0 deletions host_vars/indexers-amst1/main.yml
Original file line number Diff line number Diff line change
@@ -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
Comment thread
TakGN marked this conversation as resolved.
Resolved
# 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-<model>_<serial>, 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
2 changes: 2 additions & 0 deletions inventory/hosts.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,8 @@ all:
hosts:
indexers-chic1:
ansible_host: 84.32.71.3
indexers-amst1:
ansible_host: 84.32.186.112
Comment thread
TakGN marked this conversation as resolved.
Resolved

# Every box site.yml and k3s-upgrade.yml manage, and where their shared
# settings live (group_vars/managed_boxes). Membership is listed here, not
Expand Down
3 changes: 3 additions & 0 deletions inventory/known_hosts
Original file line number Diff line number Diff line change
Expand Up @@ -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 <ip>). Checked the same three ways on
# 2026-10-30.
Expand Down
11 changes: 11 additions & 0 deletions roles/hardening/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Loading