mirror of
https://github.com/tolerryan/NewWatari.git
synced 2026-10-12 09:07:42 +00:00
retry
This commit is contained in:
13
provider.tf
13
provider.tf
@@ -42,19 +42,14 @@ provider "proxmox" {
|
|||||||
|
|
||||||
locals {
|
locals {
|
||||||
lxc_containers = [
|
lxc_containers = [
|
||||||
"./lxc/foo",
|
"./lxc/downloader"
|
||||||
"./lxc/bar",
|
|
||||||
"./lxc/baz"
|
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
||||||
variable "lxc_dirs" {
|
|
||||||
type = list(string) # or set(string)
|
|
||||||
}
|
|
||||||
|
|
||||||
module "lxc_containers" {
|
module "lxc_containers" {
|
||||||
for_each = toset(local.lxc_dirs)
|
for_each = { for path in local.lxc_containers : path => {} }
|
||||||
|
|
||||||
source = each.value
|
source = "./modules/lxc_container"
|
||||||
|
|
||||||
|
dir = each.key # or whatever input your module expects
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user