Enhancement: Protect VM templates from deletion #47

Merged
claude-bot Bot merged 1 commits from enhancement/protect-vm-templates into main 2026-11-22 03:26:42 +01:00

Why

Only the pve-b550 template had the Proxmox protection flag, and it was set by hand. The next pulumi up would have removed it because the code did not set it.

What changes

All three templates get protection: true. Proxmox then blocks deleting a template or removing its disks. Other template settings can still be changed.

Merging does not start a deploy, because 01-proxmox-infra only deploys through manual dispatch. The next pulumi up turns the flag on for the pve-esprimo and pve-optiplex templates. It also records a few default settings for those two templates. Running VMs are not affected.

Verification

npm run typecheck passes. A local pulumi preview shows no diff on the pve-b550 template and updates on the other two. That local run also included uncommitted Ansible code, so the PR preview is the check for this commit alone.

## Why Only the `pve-b550` template had the Proxmox protection flag, and it was set by hand. The next `pulumi up` would have removed it because the code did not set it. ## What changes All three templates get `protection: true`. Proxmox then blocks deleting a template or removing its disks. Other template settings can still be changed. Merging does not start a deploy, because `01-proxmox-infra` only deploys through manual dispatch. The next `pulumi up` turns the flag on for the `pve-esprimo` and `pve-optiplex` templates. It also records a few default settings for those two templates. Running VMs are not affected. ## Verification `npm run typecheck` passes. A local `pulumi preview` shows no diff on the `pve-b550` template and updates on the other two. That local run also included uncommitted Ansible code, so the PR preview is the check for this commit alone.
claude-bot Bot added 1 commit 2026-11-22 03:25:23 +01:00
enhancement(proxmox-infra): protect VM templates from deletion
Deploy Proxmox Infra / Pulumi Deploy (pull_request) Skipped
Deploy Proxmox Infra / Pulumi Preview (pull_request) Successful in 1m7s
7548402542
claude-bot Bot merged commit 85ce271fd6 into main 2026-11-22 03:26:42 +01:00
Sign in to join this conversation.