tested n8n template
This commit is contained in:
17
terraform/modules/proxmox_vm_data/main.tf
Normal file
17
terraform/modules/proxmox_vm_data/main.tf
Normal file
@@ -0,0 +1,17 @@
|
||||
locals {
|
||||
vm_data = {
|
||||
vm_tag_data = {
|
||||
for k, v in var.instances :
|
||||
k => {
|
||||
node_name = v.node_name
|
||||
vm_name = v.vm_name
|
||||
tags = v.vm_tags
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
resource "local_file" "vm_data" {
|
||||
filename = var.filename
|
||||
content = yamlencode(local.vm_data)
|
||||
}
|
||||
Reference in New Issue
Block a user