mirror of
https://github.com/tolerryan/NewWatari.git
synced 2026-10-12 07:28:12 +00:00
refactored module import
This commit is contained in:
18
provider.tf
18
provider.tf
@@ -40,7 +40,17 @@ provider "proxmox" {
|
||||
}
|
||||
}
|
||||
|
||||
module "vm" {
|
||||
source = "./lxc/"
|
||||
# Pass input variables as needed
|
||||
}
|
||||
locals {
|
||||
lxc_containers = [
|
||||
"./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