Update LUKS unlock wait behavior

This commit is contained in:
Philip Henning 2026-02-05 18:42:02 +01:00
parent fccecfde5d
commit 66dd860c3f
2 changed files with 99 additions and 18 deletions

View file

@ -7,7 +7,7 @@ packer {
}
}
source "proxmox-iso" "debian-13-trixie" {
source "proxmox-iso" "debian-13-trixie-luks" {
# Proxmox Connection Settings
proxmox_url = "${var.proxmox_api_url}"
username = "${var.proxmox_api_token_id}"
@ -19,8 +19,8 @@ source "proxmox-iso" "debian-13-trixie" {
# VM General Settings
node = "${var.proxmox_node}"
vm_id = "${var.template_vm_id}"
vm_name = "debian-13-trixie-${local.timestamp}"
template_description = "Debian 13 Trixie, built with Packer on ${local.timestamp}"
vm_name = "debian-13-trixie-luks-${local.timestamp}"
template_description = "Debian 13 Trixie, LUKS encrypted, built with Packer on ${local.timestamp}"
os = "l26"
qemu_agent = true
@ -82,7 +82,7 @@ source "proxmox-iso" "debian-13-trixie" {
]
# PACKER Autoinstall Settings
http_directory = "debian/13-trixie/http"
http_directory = "debian/13-trixie-luks/http"
http_interface = "${var.source_proxmox_http_interface}"
# SSH Settings
@ -93,8 +93,8 @@ source "proxmox-iso" "debian-13-trixie" {
}
build {
name = "debian-13-trixie-image"
sources = ["source.proxmox-iso.debian-13-trixie"]
name = "debian-13-trixie-luks-image"
sources = ["source.proxmox-iso.debian-13-trixie-luks"]
# Provisioning the VM Template for Cloud-Init Integration in Proxmox #1
provisioner "shell" {
@ -113,7 +113,7 @@ build {
# Provisioning the VM Template for Cloud-Init Integration in Proxmox #2
provisioner "file" {
source = "debian/13-trixie/files/99-pve.cfg"
source = "debian/13-trixie-luks/files/99-pve.cfg"
destination = "/tmp/99-pve.cfg"
}
@ -129,7 +129,7 @@ build {
# Add custom APT sources list
provisioner "file" {
source = "debian/13-trixie/files/debian.sources"
source = "debian/13-trixie-luks/files/debian.sources"
destination = "/etc/apt/sources.list.d/debian.sources"
}
}