chore(decommission): drop rustfs import shims — apply destroys LXC 800/801/802 (stage 2/2)

Stage 1 (#268) adopted the never-tofu-managed rustfs containers into
state (import run 1173: all three imported, plan 'No changes').
Removing the shims makes the next apply destroy the containers —
guest lifecycle fully through tofu, per owner rule.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01NV7bZzZLeoFUEdAeCSLEei
This commit is contained in:
2026-07-16 21:07:29 +02:00
co-authored by Claude Fable 5
parent b6a5ae0877
commit ad6161c226
-41
View File
@@ -1,41 +0,0 @@
# TEMPORARY import shims — rustfs LXCs 800/801/802, decommission in progress.
#
# These containers were never tofu-managed, so the #259/#265 decommission
# sweep could not destroy them (no state entry, nothing to plan). Owner rule:
# ALL guest lifecycle goes through tofu — no manual pct/qm destroy, ever.
# The tofu-clean path for unmanaged leftovers is import-then-destroy:
#
# 1. Merge this file, then adopt the containers into state via the
# pipeline's import hook:
# woodpecker pipeline create --branch master \
# --var PIPELINE=deploy-infrastructure \
# --var 'TOFU_IMPORT=proxmox_virtual_environment_container.rustfs_decommission["800"] saturn/800
# proxmox_virtual_environment_container.rustfs_decommission["801"] jupiter/801
# proxmox_virtual_environment_container.rustfs_decommission["802"] neptune/802'
# 2. Follow-up PR deletes this file; the next apply (TOFU_APPLY=true)
# destroys the containers. Then this comment is history.
#
# Attributes are the bare minimum for a clean import + no-op plan: the
# containers are stopped and stay stopped until destroyed.
locals {
rustfs_decommission = {
"800" = "saturn"
"801" = "jupiter"
"802" = "neptune"
}
}
resource "proxmox_virtual_environment_container" "rustfs_decommission" {
for_each = local.rustfs_decommission
node_name = each.value
vm_id = tonumber(each.key)
started = false
# Never try to reconcile the leftover config — this resource exists only
# so the destroy goes through tofu.
lifecycle {
ignore_changes = all
}
}