mirror of
https://github.com/tolerryan/NewWatari.git
synced 2026-10-12 09:57:42 +00:00
refactored module import
This commit is contained in:
16
provider.tf
16
provider.tf
@@ -40,7 +40,17 @@ provider "proxmox" {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
module "vm" {
|
locals {
|
||||||
source = "./lxc/"
|
lxc_containers = [
|
||||||
# Pass input variables as needed
|
"./lxc/foo",
|
||||||
|
"./lxc/bar",
|
||||||
|
"./lxc/baz"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
|
||||||
|
module "lxc_containers" {
|
||||||
|
for_each = toset(local.lxc_containers)
|
||||||
|
|
||||||
|
source = each.value
|
||||||
|
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user