terraform: provision cc-ci on Hetzner Cloud (cpx32, nixos-infect, debian-12) #2
Closed
autonomic-bot
wants to merge 2 commits from
terraform-hetzner into main
pull from: terraform-hetzner
merge into: :main
:main
:fix/stale-run-screenshot
:fix/gitea-lfs-restart-wait
:fix/root-authorized-keys-sync
:fix/anubis-ua-reports-proxy
:config/subagents-flash
:config/opencode-go
:chore/sops-recipient-cc-ci-host
:chore/statix-fix
:chore/lint-fix
:feat/nixos-module-export
:fix/public-gitea-url
:fix/acme-owned-wildcard-files
:fix/traefik-certificate-rollout
:feat/acme-dns-production-cutover
:fix/acme-dns-ns-record
:harden/acme-dns-registration
:fix/acme-dns-sqlite
:feat/restricted-acme-dns-renewal
:plan/acme-dns-renewal
:chore/public-runtime-config
:config/deepseek-flash-zen
:config/deepseek-flash-subagents
:policy/pr-then-merge
:fix/plausible-format
:fix/plausible-v3-custom-tests
:test/upgrade-base-prefer-newest-release-20260810
:test/discourse-upgrade-base-floor-20260804
:test/wordpress-enroll-20260803
:test/lasuite-meet-stale-test-20260803
:test/lasuite-docs-stale-test-20260803
:chore/server-flake-update-20260803
:redfix-m2-harness
:feat/libredesk-tests
:phase-lvl5
:fix/converged-oneshot
:restructure/recipe-custom
:restructure/concurrency
:fix/converge-paused-update
:test/plausible-psql-quiet
:fix/converge-rolling-update
:fix/lint-and-concurrent-runs
:test/plausible-upgrade-base-3.0.1
:chore/runner-capacity-2
:feat/reports-pr-status-proxy
:feat/expected-na-and-tiny-functional
:regression-canaries
:v6-custom-html-mime
:v6-custom-html-docroot
:v6-matrix-synapse-real-upgrade-state
:terraform-hetzner
:scratch/m3-demo
2
Commits
| Author | SHA1 | Message | Date | |
|---|---|---|---|---|
|
|
b08ebea876 |
nix: add cc-ci-hetzner host (cpx32, nixos-infect hardware) + root SSH keys
Created by assistant + patched with root authorized keys so nixos-rebuild does not lock out SSH access. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com> |
||
|
|
4c7150d502 |
terraform: provision cc-ci on Hetzner Cloud via nixos-infect
Adds terraform/ (hcloud provider, cpx32/nbg1/debian-12) and a new nix/hosts/cc-ci-hetzner/ flake host to provision the cc-ci server on Hetzner Cloud as an alternative to the Incus cc-nix-test VM. Stage 1 (Terraform): creates a cpx32 server (4 vCPU / 8 GB / x86 AMD, Nuremberg), runs nixos-infect (pinned rev 40f62a6, 2026-03-22) to convert Debian 12 → NixOS 24.11, and reboots into bare NixOS. Stage 2 (manual, per terraform/README.md): clone cc-ci --recursive, provision the bootstrap age key, then `nixos-rebuild switch --flake .#cc-ci-hetzner`. Verified (throwaway run 2026-05-31, server 134464512, 168.119.126.100): - terraform apply: cpx32 in nbg1 created in 17 s - nixos-infect: NixOS 24.11.719113.50ab793786d9 (same nixpkgs pin as flake) - nixos-rebuild build --flake .#cc-ci-hetzner: exit 0 on server (131 derivations; all cc-ci modules: tailscale, drone, drone-runner, bridge, dashboard, harness, swarm, abra, proxy, secrets) - terraform plan: no changes (idempotent) - terraform destroy: server + SSH key removed Age key step (plan §4 Stage 2): operator-pending. Full switch/convergence requires bootstrap age key at /var/lib/sops-nix/key.txt. Flake builds without it; activation needs it. No secrets committed: HCLOUD_TOKEN via env, tfstate gitignored, networking.nix contains throwaway IP (update per README for production). Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com> |