HOMELAB-1056: add data_disk_discard, ignore image size drift #206

Merged
aaron merged 1 commit from homelab-1056-terraform-drift into live 2026-05-13 01:41:57 +00:00
Owner

Plane

HOMELAB-1056

Changes

Module changes to support Terraform state drift reconciliation:

  1. proxmox-vm/variables.tf — add data_disk_discard variable (default "ignore")
  2. proxmox-vm/main.tf — add discard = var.data_disk_discard to data disk dynamic block (virtio1)
  3. talos-cluster/variables.tf — add data_disk_discard variable (default "ignore")
  4. talos-cluster/main.tf — pass data_disk_discard to module.control_planes and module.workers; add lifecycle { ignore_changes = [size] } to both download_file resources

Dependency

This PR must merge to live BEFORE the prod PR (aaron/prod#...). The prod module.cluster sources ?ref=live and won't pick up the new data_disk_discard variable until this is on live.

## Plane [HOMELAB-1056](https://plane.aaron.reynoza.org/) ## Changes Module changes to support Terraform state drift reconciliation: 1. **`proxmox-vm/variables.tf`** — add `data_disk_discard` variable (default `"ignore"`) 2. **`proxmox-vm/main.tf`** — add `discard = var.data_disk_discard` to data disk dynamic block (virtio1) 3. **`talos-cluster/variables.tf`** — add `data_disk_discard` variable (default `"ignore"`) 4. **`talos-cluster/main.tf`** — pass `data_disk_discard` to `module.control_planes` and `module.workers`; add `lifecycle { ignore_changes = [size] }` to both `download_file` resources ## Dependency This PR must merge to `live` BEFORE the prod PR (`aaron/prod#...`). The prod `module.cluster` sources `?ref=live` and won't pick up the new `data_disk_discard` variable until this is on `live`.
HOMELAB-1056: add data_disk_discard, ignore image size drift
Some checks failed
0/0 projects applied successfully.
CI Review / pr-title (pull_request) Has been cancelled
CI Review / helm-validate (pull_request) Has been cancelled
CI Review / ai-review (pull_request) Has been cancelled
Lint & Validate / terraform-validate (pull_request) Has been cancelled
Lint & Validate / yaml-lint (pull_request) Has been cancelled
Lint & Validate / shellcheck (pull_request) Has been cancelled
a19cbf2551
aaron merged commit 2987ccb57d into live 2026-05-13 01:41:57 +00:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
aaron/infra-core!206
No description provided.