Improved on the post-install provisioning

This commit is contained in:
2024-04-21 01:54:33 -04:00
parent a051724f38
commit 4e00aa8ba7
11 changed files with 64 additions and 7 deletions

View File

@ -11,9 +11,10 @@ variable "proxmox_apitoken" {
source "proxmox-iso" "debian-12" {
template_name = "debian-12"
template_description = "Debian 12.5, generated on ${timestamp()}"
vm_id = "203"
boot_wait = "10s"
boot_key_interval = "200ms"
boot_command = ["<esc><wait1s>", "auto url=http://{{ .HTTPIP }}:{{ .HTTPPort }}/debian.cfg", "<enter><wait6m>"]
boot_command = ["<esc><wait1s>", "auto url=http://{{ .HTTPIP }}:{{ .HTTPPort }}/debian.cfg", "<enter><wait>"]
http_directory = "http"
http_port_max = "8089"
@ -40,6 +41,7 @@ source "proxmox-iso" "debian-12" {
username = "${var.proxmox_apiuser}"
password = "${var.proxmox_apitoken}"
node = "geonosis"
pool = "Templates"
iso_url = "https://cdimage.debian.org/debian-cd/current/amd64/iso-cd/debian-12.5.0-amd64-netinst.iso"
iso_checksum = "sha256:013f5b44670d81280b5b1bc02455842b250df2f0c6763398feb69af1a805a14f"
@ -54,4 +56,8 @@ source "proxmox-iso" "debian-12" {
build {
sources = ["source.proxmox-iso.debian-12"]
provisioner "shell" {
script = "scripts/debian-setup.sh"
}
}