Import local storage pool into Terraform state #42

Merged
AlexCaswen merged 1 commit from 46-import-local-pool into main 2026-05-09 17:16:57 +00:00
AlexCaswen commented 2026-05-09 17:13:57 +00:00 (Migrated from gitlab.com)

What

Declares incus_storage_pool.local and adds an OpenTofu import block to bring the existing local ZFS pool into Terraform state on next tofu apply.

Why

Every container's root disk references pool = "local" but the pool was never tracked in state. This means Terraform had no visibility into the pool's existence or config.

Changes

  • Added incus_storage_pool.local resource (ZFS, import-only)
  • Added import block targeting m3-incus-os:local (remove after first successful apply)
  • Organized under new # --- Imports section header

Notes

  • The import block is one-time: after the first successful tofu apply imports the pool, a follow-up commit should remove the import block.
  • No existing resources are modified — this is purely additive.
  • Container root disk devices still reference "local" as a string; updating them to incus_storage_pool.local.name is deferred to #49 (profile work).

Closes #46

## What Declares `incus_storage_pool.local` and adds an OpenTofu `import` block to bring the existing `local` ZFS pool into Terraform state on next `tofu apply`. ## Why Every container's root disk references `pool = "local"` but the pool was never tracked in state. This means Terraform had no visibility into the pool's existence or config. ## Changes - Added `incus_storage_pool.local` resource (ZFS, import-only) - Added `import` block targeting `m3-incus-os:local` (remove after first successful apply) - Organized under new `# --- Imports` section header ## Notes - The import block is one-time: after the first successful `tofu apply` imports the pool, a follow-up commit should remove the import block. - No existing resources are modified — this is purely additive. - Container root disk devices still reference `"local"` as a string; updating them to `incus_storage_pool.local.name` is deferred to #49 (profile work). Closes #46
AlexCaswen commented 2026-05-09 17:16:57 +00:00 (Migrated from gitlab.com)

mentioned in commit 374463c9c6

mentioned in commit 374463c9c657bef08b6f38e58087b5d0d2eb7c13
AlexCaswen (Migrated from gitlab.com) merged commit 374463c9c6 into main 2026-05-09 17:16:57 +00:00
AlexCaswen commented 2026-05-09 17:23:09 +00:00 (Migrated from gitlab.com)

mentioned in merge request !43

mentioned in merge request !43
AlexCaswen commented 2026-05-09 17:31:16 +00:00 (Migrated from gitlab.com)

mentioned in merge request !44

mentioned in merge request !44
Sign in to join this conversation.
No reviewers
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
midwitmoneymgmt/m3-infra!42
No description provided.