initial commit

This commit is contained in:
Philip Henning 2026-01-24 00:59:25 +01:00
commit 96c1e2d1f8
14 changed files with 551 additions and 0 deletions

76
debian/13-trixie/variables.pkr.hcl vendored Normal file
View file

@ -0,0 +1,76 @@
# 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())
}