diff --git a/provider.tf b/provider.tf index caad158..2aa91b5 100644 --- a/provider.tf +++ b/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 }