76 lines
1.8 KiB
HCL
76 lines
1.8 KiB
HCL
# Secrets
|
|
variable "proxmox_api_token_id" {
|
|
type = string
|
|
sensitive = true
|
|
description = "Proxmox API token ID in the format 'username@realm!tokenname'"
|
|
}
|
|
|
|
variable "proxmox_api_token_secret" {
|
|
type = string
|
|
sensitive = true
|
|
description = "Proxmox API token secret"
|
|
}
|
|
|
|
|
|
|
|
# Variables
|
|
variable "template_vm_id" {
|
|
type = string
|
|
default = "65000"
|
|
description = "The VM ID of the Proxmox template to use for building the image"
|
|
}
|
|
|
|
variable "mac_address" {
|
|
type = string
|
|
default = "BC:24:11:00:13:37"
|
|
description = "The MAC address to assign to the VM's network adapter"
|
|
}
|
|
|
|
variable "iso_url" {
|
|
type = string
|
|
default = "https://cdimage.debian.org/debian-cd/current/amd64/iso-cd/debian-13.3.0-amd64-netinst.iso"
|
|
description = "The URL to download the Debian 13 Trixie ISO"
|
|
}
|
|
|
|
variable "iso_checksum" {
|
|
type = string
|
|
default = "file:https://cdimage.debian.org/debian-cd/current/amd64/iso-cd/SHA256SUMS"
|
|
description = "ISO checksum (SHA256 or checksum file URL)"
|
|
}
|
|
|
|
variable "disk_storage_pool" {
|
|
type = string
|
|
default = "ceph-pool"
|
|
description = "The Proxmox storage pool to use for the VM disk"
|
|
}
|
|
|
|
variable "iso_storage_pool" {
|
|
type = string
|
|
default = "cephfs"
|
|
description = "The Proxmox storage pool to use for the ISO"
|
|
}
|
|
|
|
variable "template_cpu_type" {
|
|
type = string
|
|
default = "host"
|
|
description = "The CPU type for the Proxmox template"
|
|
}
|
|
|
|
variable "network_bridge" {
|
|
type = string
|
|
default = "vmbr9"
|
|
description = "The network bridge to attach the VM to"
|
|
}
|
|
|
|
variable "proxmox_node" {
|
|
type = string
|
|
default = "sbx0pve02"
|
|
description = "The Proxmox node to use for building the image"
|
|
}
|
|
|
|
|
|
|
|
# local values
|
|
local "timestamp" {
|
|
expression = formatdate("YYYYMMDD-hhMMss-ZZZ", timestamp())
|
|
}
|