From c8989775c91db8aa2d99ca962fe044778dcd2031 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1s=20Limpinho?= <53994778+TomasLimpinho@users.noreply.github.com> Date: Tue, 26 Aug 2025 14:19:56 +0100 Subject: [PATCH] not saved file --- proxmox.variables.tf | 30 ++++++++++++++++++------------ 1 file changed, 18 insertions(+), 12 deletions(-) diff --git a/proxmox.variables.tf b/proxmox.variables.tf index 7e4b0ee..948ad66 100644 --- a/proxmox.variables.tf +++ b/proxmox.variables.tf @@ -33,16 +33,22 @@ variable "node_name" { default = "fenix" } -variable "proxmox_VM_username" -{ - description = "Proxmox VM user name" - type = string - sensitive = true -} - -variable "proxmox_VM_password" -{ - description = "Proxmox VM password" - type = string - sensitive = true +# Lista de VMs (override de valores específicos) +variable "proxmox_k8s_vms" { + type = list(object({ + name = string + vm_id = number + node_name = string + ip = string + cores = optional(number) + memory = optional(number) + disk_size = optional(number) + extra_users = optional(list(object({ + name = string + password = string + groups = list(string) + }))) + extra_packages = optional(list(string)) + extra_runcmd = optional(list(string)) + })) } \ No newline at end of file