homelab-codex-ws/scripts/onboard/steps
Oskar Kapala 9012a36827 feat(onboard): add 00-access step + update lustro node.yaml
00-access.sh implements a 3-stage idempotent access bootstrap:
  1. ensure_ssh_key  — ssh-copy-id to first_contact (pi@pimirror2.local),
     skips if BatchMode key-auth already passes
  2. ensure_tailscale — install via install.sh if missing, then tailscale up
     --hostname=lustro; prints interactive auth URL to operator, blocks until
     authenticated; skips if BackendState already Running
  3. verify — SSH over Tailscale to pi@lustro, asserts 'ok' + arch=aarch64

Reads first_contact and tailscale.hostname from node.yaml.
Respects --dry-run. No NOPASSWD or /opt/homelab mutations.

hosts/lustro/node.yaml: fill known hardware facts (arm64, 4096 MB RAM,
zram swap, docker_present, mm_runtime=systemd:magicmirror.service),
add ssh_user=pi, first_contact=pi@pimirror2.local,
services.node-agent.runtime engine=docker mem_limit=256m.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-06-08 14:43:16 +02:00
..
00-access.sh feat(onboard): add 00-access step + update lustro node.yaml 2026-06-08 14:43:16 +02:00
00-preflight.sh feat(onboard): add node onboarding scaffold (bash, idempotent) 2026-06-08 14:23:21 +02:00
10-bootstrap-runtime.sh feat(onboard): add node onboarding scaffold (bash, idempotent) 2026-06-08 14:23:21 +02:00
20-install-docker.sh feat(onboard): add node onboarding scaffold (bash, idempotent) 2026-06-08 14:23:21 +02:00
30-install-tailscale.sh feat(onboard): add node onboarding scaffold (bash, idempotent) 2026-06-08 14:23:21 +02:00
40-deploy-node-agent.sh feat(onboard): add node onboarding scaffold (bash, idempotent) 2026-06-08 14:23:21 +02:00
50-verify.sh feat(onboard): add node onboarding scaffold (bash, idempotent) 2026-06-08 14:23:21 +02:00