From fcd839a00e077f97766bf768035164e7ab0fe5b9 Mon Sep 17 00:00:00 2001 From: rblundon Date: Thu, 18 Sep 2025 09:35:20 -0500 Subject: [PATCH] set http port --- .../ubuntu-24.04.03/ubuntu-24.04.pkr.hcl | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/infra-config/04-vm-templates/ubuntu-24.04.03/ubuntu-24.04.pkr.hcl b/infra-config/04-vm-templates/ubuntu-24.04.03/ubuntu-24.04.pkr.hcl index 4b2161f..9d7e7fc 100755 --- a/infra-config/04-vm-templates/ubuntu-24.04.03/ubuntu-24.04.pkr.hcl +++ b/infra-config/04-vm-templates/ubuntu-24.04.03/ubuntu-24.04.pkr.hcl @@ -2,7 +2,7 @@ # LOCALS ################################################################################## -# Reminder to disable the firewall before starting +# Reminder to disable the firewall before starting (or allow port 8543) # sudo systemctl stop firewalld locals { @@ -45,8 +45,6 @@ source "proxmox-iso" "ubuntu-2404" { #pre_enrolled_keys = true } - http_directory = "http" - # VM Cloud-Init Settings cloud_init = true cloud_init_storage_pool = "${var.proxmox_vm_storage_pool}" @@ -63,6 +61,15 @@ source "proxmox-iso" "ubuntu-2404" { boot_wait = "5s" # boot_wait = "${var.vm_boot_wait}" + # PACKER Autoinstall Settings + http_directory = "./http" + + # (Optional) Bind IP Address and Port + # http_bind_address = "10.1.149.166" + http_port = 8543 + # http_port_min = 8543 + # http_port_max = 8543 + sockets = "${var.vm_cpu_sockets}" cores = "${var.vm_cpu_cores}" cpu_type = "host"