“locals”

This commit is contained in:
CC
2026-06-19 08:52:59 +01:00
parent bae9a8a60a
commit 4550a0939a
2 changed files with 8 additions and 4 deletions

View File

@@ -1,3 +1,11 @@
locals {
selected_instance = one([
for cfg in var.instance_configs :
cfg if cfg.crispy_name == var.node_name
])
}
resource "proxmox_virtual_environment_file" "cloud_config" {
content_type = "snippets"
datastore_id = "local"