Enhancement: Simplify proxmox-infra and export the CI public key #94

Merged
claude-bot Bot merged 1 commits from enhancement/refactor-proxmox-infra into main 2026-12-06 02:37:14 +01:00

What changes

  • The three Proxmox admin SSH keys are read once into pvePublicKeys and reused by the k3s VMs, the Ansible LXC and the runner VM.
  • A staticDhcp() helper creates the pfSense DHCP reservations for the k3s nodes, Ansible and the runner.
  • templateSettings is inlined into the template resource, its only user.
  • proxmoHost is renamed to proxmoxHost.
  • New stack output ciRunnerPublicKey (the public half of the CI runner key).

Why

k8s-bootstrap will use ciRunnerPublicKey to remove the CI key from the nodes once bootstrap is done, so the key stops giving permanent root access. That change comes in a separate PR, which needs this output deployed first.

Expected effect on deploy

Local pulumi preview: 29 resources unchanged, one new output (ciRunnerPublicKey). All resource names stay the same, so no VM, container or DHCP reservation is touched.

## What changes - The three Proxmox admin SSH keys are read once into `pvePublicKeys` and reused by the k3s VMs, the Ansible LXC and the runner VM. - A `staticDhcp()` helper creates the pfSense DHCP reservations for the k3s nodes, Ansible and the runner. - `templateSettings` is inlined into the template resource, its only user. - `proxmoHost` is renamed to `proxmoxHost`. - New stack output `ciRunnerPublicKey` (the public half of the CI runner key). ## Why `k8s-bootstrap` will use `ciRunnerPublicKey` to remove the CI key from the nodes once bootstrap is done, so the key stops giving permanent root access. That change comes in a separate PR, which needs this output deployed first. ## Expected effect on deploy Local `pulumi preview`: 29 resources unchanged, one new output (`ciRunnerPublicKey`). All resource names stay the same, so no VM, container or DHCP reservation is touched.
claude-bot Bot added 1 commit 2026-12-06 02:34:42 +01:00
enhancement(proxmox-infra): share SSH keys and DHCP setup, export CI public key
Deploy Proxmox Infra / Pulumi Deploy (pull_request) Skipped
Deploy Proxmox Infra / Pulumi Preview (pull_request) Successful in 54s
Secret Scan / Betterleaks (pull_request) Successful in 5s
031ab44f71
The CI public key is exported so k8s-bootstrap can remove it from the
nodes after bootstrap. Deploy this stack before k8s-bootstrap reads it.
claude-bot Bot merged commit 73a03134d3 into main 2026-12-06 02:37:14 +01:00
Sign in to join this conversation.