module "image" { source = "../../../../../../modules/image" for_each = var.images name = each.key remote = lookup(each.value, "remote") architecture = lookup(each.value, "architecture", null) } module "network" { source = "../../../../../../modules/network" for_each = var.networks name = each.key type = lookup(each.value, "type") config = lookup(each.value, "config", {}) } module "profile" { source = "../../../../../../modules/profile" for_each = var.profiles name = each.key description = lookup(each.value, "description", null) project = lookup(each.value, "project", null) config = lookup(each.value, "config", {}) devices = lookup(each.value, "devices", []) } module "storage_pool" { source = "../../../../../../modules/storage_pool" for_each = var.storage_pools name = each.key description = lookup(each.value, "description", null) project = lookup(each.value, "project", null) driver = lookup(each.value, "driver") config = lookup(each.value, "config", {}) } module "storage_volume" { source = "../../../../../../modules/storage_volume" for_each = var.storage_volumes name = each.key pool = each.value.pool description = lookup(each.value, "description", null) type = lookup(each.value, "type", "custom") content_type = lookup(each.value, "content_type", null) config = lookup(each.value, "config", {}) }