Add new template for debian trixie without luks encryption; fix disk resizing on first boot; set default user and ssh keys for cloud init

This commit is contained in:
Philip Henning 2026-05-11 17:50:49 +02:00
parent 775215f230
commit e57f2d977b
19 changed files with 2341 additions and 17 deletions

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

@ -0,0 +1,67 @@
# 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.4.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 = "vmbr108"
description = "The network bridge to attach the VM to"
}
variable "proxmox_node" {
type = string
default = "pve1"
description = "The Proxmox node to use for building the image"
}
variable "install_finished_inform_port" {
type = string
default = "10000"
description = "The server port to inform when installation is finished"
}
# local values
local "timestamp" {
expression = formatdate("YYYYMMDD-hhMMss-ZZZ", timestamp())
}