Files

27 lines
671 B
Terraform

variable "proxmox_api_token" {
description = "Proxmox API token — format: user@realm!token_name=secret"
type = string
sensitive = true
}
variable "ssh_private_key_path" {
description = "Path to SSH private key for Proxmox host access"
type = string
default = "~/.ssh/id_ecdsa"
}
variable "ssh_public_key" {
description = "SSH public key injected into created VMs"
type = string
}
variable "vms" {
description = "Map of VMs to create. Key becomes the VM hostname."
type = map(object({
cores = optional(number, 2)
memory = optional(number, 2048)
disk_size = optional(number, 20)
}))
default = {}
}