2026-02-27 20:43:39 +00:00
|
|
|
variable "pm_api_token_id" {
|
|
|
|
|
type = string
|
|
|
|
|
description = "Proxmox API token ID (format: user@realm!tokenid)"
|
2026-02-27 21:00:44 +00:00
|
|
|
|
|
|
|
|
validation {
|
|
|
|
|
condition = can(regex(".+!.+", trimspace(var.pm_api_token_id)))
|
|
|
|
|
error_message = "pm_api_token_id must be in format user@realm!tokenid."
|
|
|
|
|
}
|
2026-02-27 20:43:39 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
variable "pm_api_token_secret" {
|
|
|
|
|
type = string
|
|
|
|
|
sensitive = true
|
|
|
|
|
description = "Proxmox API token secret"
|
2026-02-27 21:00:44 +00:00
|
|
|
|
|
|
|
|
validation {
|
|
|
|
|
condition = length(trimspace(var.pm_api_token_secret)) > 0
|
|
|
|
|
error_message = "pm_api_token_secret cannot be empty. Check your Gitea secret PM_API_TOKEN_SECRET."
|
|
|
|
|
}
|
2026-02-27 20:43:39 +00:00
|
|
|
}
|
|
|
|
|
|
2025-04-17 01:28:18 +01:00
|
|
|
variable "target_node" {
|
|
|
|
|
type = string
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
variable "clone_template" {
|
|
|
|
|
type = string
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
variable "cores" {
|
|
|
|
|
type = number
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
variable "memory" {
|
|
|
|
|
type = number
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
variable "disk_size" {
|
|
|
|
|
type = string
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
variable "sockets" {
|
|
|
|
|
type = number
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
variable "bridge" {
|
|
|
|
|
type = string
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
variable "storage" {
|
|
|
|
|
type = string
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
variable "pm_api_url" {
|
|
|
|
|
type = string
|
|
|
|
|
}
|
|
|
|
|
|
2025-04-17 16:46:19 +01:00
|
|
|
variable "alpaca_vm_count" {
|
|
|
|
|
type = number
|
|
|
|
|
default = 1
|
|
|
|
|
description = "How many Alpaca VMs to create"
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
variable "llama_vm_count" {
|
|
|
|
|
type = number
|
|
|
|
|
default = 1
|
|
|
|
|
description = "How many Llama VMs to create"
|
|
|
|
|
}
|