Commit graph iac/MIGRATION.md
Author SHA1 Message Date
ce8b1a678e
docs: plan the ops conversion around the WireGuard hub; TODO list
ops is the WireGuard hub, so converting it takes the admin network
down for everyone, and services with it. The Phase 2 plan now says how
ops is reached at every point: WireGuard until the stop, its public
address in the bootstrap system, then WireGuard again, with a
break-glass root login from the admin's exit address (services' IPv4,
through Xray) for this phase only. The new system is activated with
`nixos-rebuild test` under a 15-minute dead-man reboot first, so a
lock-out ends in the reachable bootstrap system instead of a console
session; only after the laptop is back on WireGuard does `switch` make
it the boot default.

A TODO section tracks what is left, starting with deleting /old-root
on services after a week.

Assisted-by: Claude:opus-5-5
2026-11-17 07:46:42 +04:00
21c58a4a66
docs: asxpio-services is on NixOS; what Phase 1 taught
Record the conversion of asxpio-services (34 minutes of downtime) and
the lessons now in the config or the runbook: the admin's uplink runs
through Xray on services, build on the host rather than from the
workstation, Podman DNS on every network, IPv6 for published ports.
Phase 2 gains two steps: switch Ansible's deploy off before ops
converts, and drop the interim certificate-push key afterwards.

Assisted-by: Claude:opus-5-5
2026-11-17 07:38:35 +04:00
ebbf458983
docs: the full migration plan; ci: deploy NixOS hosts
All checks were successful
nixos / nixos (push) Successful in 55s
MIGRATION.md is now the complete plan for moving production from
Ansible and Terraform to NixOS and OpenTofu: what was rehearsed and
how, the preparation that needs no downtime, one runbook per host with
its checks and rollback, the clean-up including the branch renames,
and the rules for running restored production data on test servers.

The NixOS workflow now deploys on main, ops first, building on each
host. It checks /etc/NIXOS before touching a host, so it skips both
servers until their conversion and cannot reach a Debian one.
known_hosts moves to the repository root for it.

Renovate learns the Nix files: version comments, the runner's job
images and flake.lock (weekly). The Ansible patterns stay until
Ansible is gone.

Assisted-by: Claude:opus-5-5
2026-11-17 05:15:16 +04:00
933b086bb1
docs: how to build, restore and migrate; ci: evaluate NixOS hosts
Anyone with the repo and the secrets should be able to rebuild the
servers. nixos/README.md covers building from nothing, reinstalling in
place and the rehearsal pair; RESTORE.md covers restoring from the
restic backups; MIGRATION.md is the plan and runbook for moving
production over, with what was learned on the test servers.

CI evaluates every host on a push under nixos/. It does not deploy yet:
no production host runs NixOS.

Assisted-by: Claude:fable-5-2
2026-11-16 22:59:59 +04:00