Add reusable storage pool module with lvmcluster san pool

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-03-15 09:59:02 +01:00
parent 75273421fe
commit 6b53db3ad9
6 changed files with 89 additions and 0 deletions

10
incus/storage.tf Normal file
View File

@@ -0,0 +1,10 @@
module "storage" {
source = "./modules/storage"
for_each = var.incus_storage_pools
name = each.key
driver = each.value.driver
hypervisors = toset(keys(var.incus_hypervisors))
witnesses = toset(keys(var.incus_witnesses))
hypervisor_config = each.value.hypervisor_config
witness_config = each.value.witness_config
}