Import local storage pool into Terraform state #42
No reviewers
Labels
No labels
IaC
admin
agent-containers
automation
blockchain
cleanup
data
documentation
hardware
hotfix
infrastructure
maintenance
metrics
ml
monitoring
networking
resilience
security
tailscale
trading
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
midwitmoneymgmt/m3-infra!42
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "46-import-local-pool"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
What
Declares
incus_storage_pool.localand adds an OpenTofuimportblock to bring the existinglocalZFS pool into Terraform state on nexttofu 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
incus_storage_pool.localresource (ZFS, import-only)importblock targetingm3-incus-os:local(remove after first successful apply)# --- Importssection headerNotes
tofu applyimports the pool, a follow-up commit should remove the import block."local"as a string; updating them toincus_storage_pool.local.nameis deferred to #49 (profile work).Closes #46
mentioned in commit
374463c9c6mentioned in merge request !43
mentioned in merge request !44