Bug: Fix Proxmox refresh targets and protect the Ansible container #72

Merged
claude-bot Bot merged 2 commits from bug/fix-proxmox-refresh-targets into main 2026-11-29 02:55:57 +01:00

What changed

  • The manual refresh in 01's workflow now uses proxmoxve** and tls** targets instead of proxmoxve* and tls*.
  • The Ansible container now sets protection: true, so Proxmox blocks deleting the container or its disk. This is separate from Pulumi's protect: true, which was already set.

Why

In a local preview-only refresh, the old targets reported no resources. The new ones matched 15. Manual runs of 01 were probably not picking up changes made in Proxmox. Past CI logs weren't checked.

The first refresh that matched resources showed the container's protection as on in Proxmox but off in Pulumi's state. A later refresh showed no differences, which means it was off in both. What turned it off is unknown. The setting wasn't in the code, so a refresh could have saved it as on and the next deploy could have turned it off. Both changes are in this PR so the code sets protection before the working refresh is used.

Checks

Typecheck passes. Local pulumi preview (without refresh) for 01-proxmox-infra: 1 to update, 26 unchanged. The only update is the Ansible container's protection (false to true). Nothing is replaced or deleted.

The latest preview-only refresh with the new targets showed 15 unchanged. PR checks don't run the manual refresh, so its first manual run will be the first test in CI.

Deploy

Merging deploys only 01-proxmox-infra, without a refresh first. Based on the latest refresh, this turns protection on in Proxmox. To delete the container or its disk later, turn protection off first.

Manual runs of 01 need more care after this. The refresh should now save real changes, and the deploy follows without a review step. It may undo changes made in Proxmox. If the refresh can't find a VM, it can remove the VM from state and the deploy could create a blank replacement. Run the same refresh with --preview-only before each manual run, and compare any changes with the code.

## What changed - The manual refresh in 01's workflow now uses `proxmoxve**` and `tls**` targets instead of `proxmoxve*` and `tls*`. - The Ansible container now sets `protection: true`, so Proxmox blocks deleting the container or its disk. This is separate from Pulumi's `protect: true`, which was already set. ## Why In a local preview-only refresh, the old targets reported no resources. The new ones matched 15. Manual runs of 01 were probably not picking up changes made in Proxmox. Past CI logs weren't checked. The first refresh that matched resources showed the container's protection as on in Proxmox but off in Pulumi's state. A later refresh showed no differences, which means it was off in both. What turned it off is unknown. The setting wasn't in the code, so a refresh could have saved it as on and the next deploy could have turned it off. Both changes are in this PR so the code sets protection before the working refresh is used. ## Checks Typecheck passes. Local `pulumi preview` (without refresh) for `01-proxmox-infra`: 1 to update, 26 unchanged. The only update is the Ansible container's `protection` (`false` to `true`). Nothing is replaced or deleted. The latest preview-only refresh with the new targets showed 15 unchanged. PR checks don't run the manual refresh, so its first manual run will be the first test in CI. ## Deploy Merging deploys only `01-proxmox-infra`, without a refresh first. Based on the latest refresh, this turns protection on in Proxmox. To delete the container or its disk later, turn protection off first. **Manual runs of 01 need more care after this.** The refresh should now save real changes, and the deploy follows without a review step. It may undo changes made in Proxmox. If the refresh can't find a VM, it can remove the VM from state and the deploy could create a blank replacement. Run the same refresh with `--preview-only` before each manual run, and compare any changes with the code.
claude-bot Bot added 2 commits 2026-11-29 02:52:21 +01:00
Set this in code so Pulumi can detect changes to it, and so a deploy
after a refresh doesn't turn it off.
bug(ci): fix proxmox-infra refresh targets
Deploy Proxmox Infra / Pulumi Deploy (pull_request) Skipped
Deploy k8s Infra / Pulumi Deploy (pull_request) Skipped
Deploy k8s Apps / Pulumi Deploy (pull_request) Skipped
Deploy Monitoring / Pulumi Deploy (pull_request) Skipped
Deploy Proxmox Infra / Pulumi Preview (pull_request) Successful in 57s
Deploy k8s Infra / Pulumi Preview (pull_request) Successful in 43s
Deploy k8s Apps / Pulumi Preview (pull_request) Successful in 39s
Deploy Monitoring / Pulumi Preview (pull_request) Successful in 44s
Secret Scan / Betterleaks (pull_request) Successful in 6s
185e0c96d5
In local preview-only refreshes, the single-* targets reported no
resources. The ** targets matched 15.
claude-bot Bot merged commit 22dfe9a26b into main 2026-11-29 02:55:57 +01:00
Sign in to join this conversation.