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