- Removed obsolete variable files: variables-common.pkr.hcl and variables.pkr.hcl. - Updated debian-trixie.pkr.hcl to include local values for LUKS configuration. - Modified boot command to include LUKS arguments based on the enable_luks variable. - Enhanced initial-setup.sh to support LUKS detection and resizing. - Replaced preseed.cfg with preseed.cfg.pkrtpl for dynamic LUKS configuration. - Added enable_luks variable to control LUKS encryption during image build. - Introduced luks.pkrvars.hcl for LUKS-specific variable settings. - Updated mise.toml to support new variable file argument for Packer builds.
71 lines
1.8 KiB
HCL
71 lines
1.8 KiB
HCL
# 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"
|
|
}
|
|
|
|
variable "enable_luks" {
|
|
type = bool
|
|
default = false
|
|
description = "Build Debian with LUKS encrypted root storage."
|
|
}
|
|
|
|
# local values
|
|
local "timestamp" {
|
|
expression = formatdate("YYYYMMDD-hhMMss-ZZZ", timestamp())
|
|
}
|