mirror of
https://github.com/tolerryan/NewWatari.git
synced 2026-10-12 07:28:12 +00:00
retry
This commit is contained in:
13
provider.tf
13
provider.tf
@@ -42,19 +42,14 @@ provider "proxmox" {
|
||||
|
||||
locals {
|
||||
lxc_containers = [
|
||||
"./lxc/foo",
|
||||
"./lxc/bar",
|
||||
"./lxc/baz"
|
||||
"./lxc/downloader"
|
||||
]
|
||||
}
|
||||
|
||||
variable "lxc_dirs" {
|
||||
type = list(string) # or set(string)
|
||||
}
|
||||
|
||||
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