Archived
Stage 1 base config/hardening toolset, applied and verified on pve1
Splits the repo into Stage 1 (base host config/hardening, applies to any node) and Stage 2 (future HA/Ceph cluster, deferred - pve1's mini-PC hardware can't support the assumed split-disk/multi-NIC layout). Adds the Stage 1 toolset: firewall deploy, named admin user creation, unattended security upgrades, subscription-nag removal (with an apt hook so the patch survives package updates), and a read-only audit script. Fixes switch-to-no-subscription-repo.sh, which only handled the legacy .list format and silently no-op'd against PVE 9's deb822 .sources files; it now removes enterprise sources outright rather than commenting them out. Shared logic (root check, idempotent file writes, backups) factored into scripts/lib/common.sh. Ran the full sequence against pve1 via scripts/bootstrap.sh + create-admin-user.sh; scripts/audit.sh confirms all checks pass.
This commit is contained in:
@@ -1,5 +1,31 @@
|
||||
# Node 1 Hardware Layout
|
||||
|
||||
## pve1 as built (current reality)
|
||||
|
||||
`pve1` is an ASUS PN53 mini PC (Ryzen 7 7735HS, 32GB RAM), not the
|
||||
dedicated-server hardware the target design below assumes:
|
||||
|
||||
- **Disks**: 2x 2TB NVMe (Crucial CT2000E100SSD8), both in a single ZFS
|
||||
mirror (`rpool`) that serves as both the boot pool and VM storage
|
||||
(`local-zfs` = `rpool/data`). No spare disks to earmark for Ceph — the
|
||||
chassis only has 2 NVMe slots.
|
||||
- **Network**: one physical NIC (Realtek RTL8125, 2.5GbE), bridged as
|
||||
`vmbr0`. No second NIC for a dedicated corosync/Ceph link. (An unused
|
||||
`nic1` stanza in `/etc/network/interfaces` is a leftover from the
|
||||
installer template — there is no second NIC on this hardware.)
|
||||
|
||||
This is sufficient and correct for **Stage 1** (see `00-overview.md`) —
|
||||
base config and hardening don't need split disks or multiple NICs. It is
|
||||
*not* sufficient for **Stage 2** (Ceph/HA) as designed below without
|
||||
either different hardware or a materially different plan (e.g.
|
||||
USB/Thunderbolt-attached OSD storage, which trades away the
|
||||
enterprise-SSD/PLP guidance below — not recommended, revisit when
|
||||
actually provisioning nodes 2/3). Treat everything from here down as the
|
||||
Stage 2 target design for purpose-built hardware, not a description of
|
||||
`pve1`.
|
||||
|
||||
## Target design (Stage 2, future dedicated hardware)
|
||||
|
||||
Build node 1 so nodes 2/3 are drop-in identical later — don't re-architect
|
||||
disks or network when the cluster grows.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user