51 lines
1.1 KiB
HCL
51 lines
1.1 KiB
HCL
variable "pm_api_url" {
|
|
type = string
|
|
description = "Proxmox API endpoint, e.g. https://proxmox:8006/api2/json"
|
|
}
|
|
|
|
variable "pm_api_token" {
|
|
type = string
|
|
description = "Proxmox API token: root@pam!terraform=..."
|
|
sensitive = true
|
|
}
|
|
|
|
variable "pm_user" {
|
|
type = string
|
|
description = "SSH username for Proxmox node"
|
|
default = "root"
|
|
}
|
|
|
|
variable "pm_password" {
|
|
type = string
|
|
description = "SSH password for Proxmox node"
|
|
sensitive = true
|
|
}
|
|
|
|
variable "target_node" {
|
|
type = string
|
|
description = "Target Proxmox node name"
|
|
}
|
|
|
|
variable "template_id" {
|
|
type = number
|
|
description = "Template VM ID to clone from"
|
|
}
|
|
|
|
variable "storage" {
|
|
type = string
|
|
description = "Default datastore for OS disk"
|
|
default = "local-lvm"
|
|
}
|
|
|
|
variable "bridge" {
|
|
type = string
|
|
description = "Default VM bridge"
|
|
default = "vmbr0"
|
|
}
|
|
|
|
variable "snippets_storage" {
|
|
type = string
|
|
description = "Datastore where 'snippets' content is enabled (usually 'local')"
|
|
default = "local"
|
|
}
|