Files
TerraHome/terraform/variables.tf
MichaelFisher1997 e714a56980
All checks were successful
Terraform Plan / Terraform Plan (push) Successful in 17s
update: switch Terraform to NixOS template workflow
- Point clone_template to nixos-template and trim cloud-init to Nix-safe hostname/DNS only
- Remove SSH/Tailscale cloud-init variables and workflow secret dependencies
- Add reusable NixOS template-base config with bootloader, Tailscale, fish, and utility packages
2026-02-28 00:06:25 +00:00

69 lines
1.2 KiB
HCL

variable "pm_api_token_id" {
type = string
description = "Proxmox API token ID (format: user@realm!tokenid)"
validation {
condition = can(regex(".+!.+", trimspace(var.pm_api_token_id)))
error_message = "pm_api_token_id must be in format user@realm!tokenid."
}
}
variable "pm_api_token_secret" {
type = string
sensitive = true
description = "Proxmox API token secret"
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."
}
}
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
}
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"
}