Updating packer builds for new vmdisk-templates storage pool

This commit is contained in:
2026-08-04 12:45:11 -04:00
parent 459c966022
commit f63e817e19
10 changed files with 121 additions and 21 deletions
+12 -2
View File
@@ -1,3 +1,8 @@
variable "proxmox_host" {
type = string
default = "proxmox.example.com"
}
variable "proxmox_apiuser" { variable "proxmox_apiuser" {
type = string type = string
default = "packer" default = "packer"
@@ -8,6 +13,11 @@ variable "proxmox_apitoken" {
default = "changeme" default = "changeme"
} }
variable "proxmox_disk_storage" {
type = string
default = "packer"
}
source "proxmox-iso" "almalinux-10" { source "proxmox-iso" "almalinux-10" {
template_name = "almalinux-10" template_name = "almalinux-10"
template_description = "Almalinux 10.0, generated on ${timestamp()}" template_description = "Almalinux 10.0, generated on ${timestamp()}"
@@ -28,7 +38,7 @@ source "proxmox-iso" "almalinux-10" {
scsi_controller = "virtio-scsi-single" scsi_controller = "virtio-scsi-single"
disks { disks {
disk_size = "30G" disk_size = "30G"
storage_pool = "templates" storage_pool = "${var.proxmox_disk_storage}"
type = "scsi" type = "scsi"
format = "qcow2" format = "qcow2"
} }
@@ -37,7 +47,7 @@ source "proxmox-iso" "almalinux-10" {
model = "virtio" model = "virtio"
} }
proxmox_url = "https://kamino.int.metaunix.net:8006/api2/json/" proxmox_url = "https://${var.proxmox_host}:8006/api2/json/"
insecure_skip_tls_verify = true insecure_skip_tls_verify = true
username = "${var.proxmox_apiuser}" username = "${var.proxmox_apiuser}"
password = "${var.proxmox_apitoken}" password = "${var.proxmox_apitoken}"
+12 -2
View File
@@ -1,3 +1,8 @@
variable "proxmox_host" {
type = string
default = "proxmox.example.com"
}
variable "proxmox_apiuser" { variable "proxmox_apiuser" {
type = string type = string
default = "packer" default = "packer"
@@ -8,6 +13,11 @@ variable "proxmox_apitoken" {
default = "changeme" default = "changeme"
} }
variable "proxmox_disk_storage" {
type = string
default = "packer"
}
source "proxmox-iso" "almalinux-9" { source "proxmox-iso" "almalinux-9" {
template_name = "almalinux-9" template_name = "almalinux-9"
template_description = "Almalinux 9.6, generated on ${timestamp()}" template_description = "Almalinux 9.6, generated on ${timestamp()}"
@@ -28,7 +38,7 @@ source "proxmox-iso" "almalinux-9" {
scsi_controller = "virtio-scsi-single" scsi_controller = "virtio-scsi-single"
disks { disks {
disk_size = "30G" disk_size = "30G"
storage_pool = "templates" storage_pool = "${var.proxmox_disk_storage}"
type = "scsi" type = "scsi"
format = "qcow2" format = "qcow2"
} }
@@ -37,7 +47,7 @@ source "proxmox-iso" "almalinux-9" {
model = "virtio" model = "virtio"
} }
proxmox_url = "https://kamino.int.metaunix.net:8006/api2/json/" proxmox_url = "https://${var.proxmox_host}:8006/api2/json/"
insecure_skip_tls_verify = true insecure_skip_tls_verify = true
username = "${var.proxmox_apiuser}" username = "${var.proxmox_apiuser}"
password = "${var.proxmox_apitoken}" password = "${var.proxmox_apitoken}"
+12 -2
View File
@@ -1,3 +1,8 @@
variable "proxmox_host" {
type = string
default = "proxmox.example.com"
}
variable "proxmox_apiuser" { variable "proxmox_apiuser" {
type = string type = string
default = "packer" default = "packer"
@@ -8,6 +13,11 @@ variable "proxmox_apitoken" {
default = "changeme" default = "changeme"
} }
variable "proxmox_disk_storage" {
type = string
default = "packer"
}
source "proxmox-iso" "debian-12" { source "proxmox-iso" "debian-12" {
template_name = "debian-12" template_name = "debian-12"
template_description = "Debian 12.9, generated on ${timestamp()}" template_description = "Debian 12.9, generated on ${timestamp()}"
@@ -28,7 +38,7 @@ source "proxmox-iso" "debian-12" {
scsi_controller = "virtio-scsi-single" scsi_controller = "virtio-scsi-single"
disks { disks {
disk_size = "30G" disk_size = "30G"
storage_pool = "templates" storage_pool = "${var.proxmox_disk_storage}"
type = "scsi" type = "scsi"
format = "qcow2" format = "qcow2"
} }
@@ -37,7 +47,7 @@ source "proxmox-iso" "debian-12" {
model = "virtio" model = "virtio"
} }
proxmox_url = "https://kamino.int.metaunix.net:8006/api2/json/" proxmox_url = "https://${var.proxmox_host}:8006/api2/json/"
insecure_skip_tls_verify = true insecure_skip_tls_verify = true
username = "${var.proxmox_apiuser}" username = "${var.proxmox_apiuser}"
password = "${var.proxmox_apitoken}" password = "${var.proxmox_apitoken}"
+12 -2
View File
@@ -1,3 +1,8 @@
variable "proxmox_host" {
type = string
default = "proxmox.example.com"
}
variable "proxmox_apiuser" { variable "proxmox_apiuser" {
type = string type = string
default = "packer" default = "packer"
@@ -8,6 +13,11 @@ variable "proxmox_apitoken" {
default = "changeme" default = "changeme"
} }
variable "proxmox_disk_storage" {
type = string
default = "packer"
}
source "proxmox-iso" "debian-13" { source "proxmox-iso" "debian-13" {
template_name = "debian-13" template_name = "debian-13"
template_description = "Debian 13.0, generated on ${timestamp()}" template_description = "Debian 13.0, generated on ${timestamp()}"
@@ -28,7 +38,7 @@ source "proxmox-iso" "debian-13" {
scsi_controller = "virtio-scsi-single" scsi_controller = "virtio-scsi-single"
disks { disks {
disk_size = "30G" disk_size = "30G"
storage_pool = "templates" storage_pool = "${var.proxmox_disk_storage}"
type = "scsi" type = "scsi"
format = "qcow2" format = "qcow2"
} }
@@ -37,7 +47,7 @@ source "proxmox-iso" "debian-13" {
model = "virtio" model = "virtio"
} }
proxmox_url = "https://kamino.int.metaunix.net:8006/api2/json/" proxmox_url = "https://${var.proxmox_host}:8006/api2/json/"
insecure_skip_tls_verify = true insecure_skip_tls_verify = true
username = "${var.proxmox_apiuser}" username = "${var.proxmox_apiuser}"
password = "${var.proxmox_apitoken}" password = "${var.proxmox_apitoken}"
+12 -2
View File
@@ -1,3 +1,8 @@
variable "proxmox_host" {
type = string
default = "proxmox.example.com"
}
variable "proxmox_apiuser" { variable "proxmox_apiuser" {
type = string type = string
default = "packer" default = "packer"
@@ -8,6 +13,11 @@ variable "proxmox_apitoken" {
default = "changeme" default = "changeme"
} }
variable "proxmox_disk_storage" {
type = string
default = "packer"
}
source "proxmox-iso" "freebsd-14" { source "proxmox-iso" "freebsd-14" {
template_name = "freebsd-14" template_name = "freebsd-14"
template_description = "FreeBSD 14.3, generated on ${timestamp()}" template_description = "FreeBSD 14.3, generated on ${timestamp()}"
@@ -24,7 +34,7 @@ source "proxmox-iso" "freebsd-14" {
scsi_controller = "virtio-scsi-single" scsi_controller = "virtio-scsi-single"
disks { disks {
disk_size = "30G" disk_size = "30G"
storage_pool = "templates" storage_pool = "${var.proxmox_disk_storage}"
type = "scsi" type = "scsi"
format = "qcow2" format = "qcow2"
} }
@@ -33,7 +43,7 @@ source "proxmox-iso" "freebsd-14" {
model = "virtio" model = "virtio"
} }
proxmox_url = "https://kamino.int.metaunix.net:8006/api2/json/" proxmox_url = "https://${var.proxmox_host}:8006/api2/json/"
insecure_skip_tls_verify = true insecure_skip_tls_verify = true
username = "${var.proxmox_apiuser}" username = "${var.proxmox_apiuser}"
password = "${var.proxmox_apitoken}" password = "${var.proxmox_apitoken}"
+13 -3
View File
@@ -1,3 +1,8 @@
variable "proxmox_host" {
type = string
default = "proxmox.example.com"
}
variable "proxmox_apiuser" { variable "proxmox_apiuser" {
type = string type = string
default = "packer" default = "packer"
@@ -8,6 +13,11 @@ variable "proxmox_apitoken" {
default = "changeme" default = "changeme"
} }
variable "proxmox_disk_storage" {
type = string
default = "packer"
}
source "proxmox-iso" "freebsd-15" { source "proxmox-iso" "freebsd-15" {
template_name = "freebsd-15" template_name = "freebsd-15"
template_description = "FreeBSD 15.1, generated on ${timestamp()}" template_description = "FreeBSD 15.1, generated on ${timestamp()}"
@@ -19,7 +29,7 @@ source "proxmox-iso" "freebsd-15" {
"mdmfs -s 100m md /tmp<enter><wait2s>", # mount a writable /tmp memory disk "mdmfs -s 100m md /tmp<enter><wait2s>", # mount a writable /tmp memory disk
"mdmfs -s 100m md /var/db<enter><wait2s>", # mount a writable /var memory disk "mdmfs -s 100m md /var/db<enter><wait2s>", # mount a writable /var memory disk
"dhclient vtnet0<enter><wait5>", # bring up network "dhclient vtnet0<enter><wait5>", # bring up network
"fetch -o /tmp/installerconfig http://{{ .HTTPIP }}:{{ .HTTPPort }}/freebsd-15-installerconfig<enter><wait5s>", # grab the installerconfig "fetch -o /tmp/instaproxmox_hostllerconfig http://{{ .HTTPIP }}:{{ .HTTPPort }}/freebsd-15-installerconfig<enter><wait5s>", # grab the installerconfig
"bsdinstall script /tmp/installerconfig<enter>" # execute bsdinstall with fetched config "bsdinstall script /tmp/installerconfig<enter>" # execute bsdinstall with fetched config
] ]
@@ -35,7 +45,7 @@ source "proxmox-iso" "freebsd-15" {
scsi_controller = "virtio-scsi-single" scsi_controller = "virtio-scsi-single"
disks { disks {
disk_size = "30G" disk_size = "30G"
storage_pool = "templates" storage_pool = "${var.proxmox_disk_storage}"
type = "scsi" type = "scsi"
format = "qcow2" format = "qcow2"
} }
@@ -44,7 +54,7 @@ source "proxmox-iso" "freebsd-15" {
model = "virtio" model = "virtio"
} }
proxmox_url = "https://kamino.int.metaunix.net:8006/api2/json/" proxmox_url = "https://${var.proxmox_host}:8006/api2/json/"
insecure_skip_tls_verify = true insecure_skip_tls_verify = true
username = "${var.proxmox_apiuser}" username = "${var.proxmox_apiuser}"
password = "${var.proxmox_apitoken}" password = "${var.proxmox_apitoken}"
+12 -2
View File
@@ -1,3 +1,8 @@
variable "proxmox_host" {
type = string
default = "proxmox.example.com"
}
variable "proxmox_apiuser" { variable "proxmox_apiuser" {
type = string type = string
default = "packer" default = "packer"
@@ -8,6 +13,11 @@ variable "proxmox_apitoken" {
default = "changeme" default = "changeme"
} }
variable "proxmox_disk_storage" {
type = string
default = "packer"
}
source "proxmox-iso" "rocky-10" { source "proxmox-iso" "rocky-10" {
template_name = "rocky-10" template_name = "rocky-10"
template_description = "Rocky Linux 10.0, generated on ${timestamp()}" template_description = "Rocky Linux 10.0, generated on ${timestamp()}"
@@ -28,7 +38,7 @@ source "proxmox-iso" "rocky-10" {
scsi_controller = "virtio-scsi-single" scsi_controller = "virtio-scsi-single"
disks { disks {
disk_size = "30G" disk_size = "30G"
storage_pool = "templates" storage_pool = "${var.proxmox_disk_storage}"
type = "scsi" type = "scsi"
format = "qcow2" format = "qcow2"
} }
@@ -37,7 +47,7 @@ source "proxmox-iso" "rocky-10" {
model = "virtio" model = "virtio"
} }
proxmox_url = "https://kamino.int.metaunix.net:8006/api2/json/" proxmox_url = "https://${var.proxmox_host}:8006/api2/json/"
insecure_skip_tls_verify = true insecure_skip_tls_verify = true
username = "${var.proxmox_apiuser}" username = "${var.proxmox_apiuser}"
password = "${var.proxmox_apitoken}" password = "${var.proxmox_apitoken}"
+12 -2
View File
@@ -1,3 +1,8 @@
variable "proxmox_host" {
type = string
default = "proxmox.example.com"
}
variable "proxmox_apiuser" { variable "proxmox_apiuser" {
type = string type = string
default = "packer" default = "packer"
@@ -8,6 +13,11 @@ variable "proxmox_apitoken" {
default = "changeme" default = "changeme"
} }
variable "proxmox_disk_storage" {
type = string
default = "packer"
}
source "proxmox-iso" "rocky-9" { source "proxmox-iso" "rocky-9" {
template_name = "rocky-9" template_name = "rocky-9"
template_description = "Rocky Linux 9.6, generated on ${timestamp()}" template_description = "Rocky Linux 9.6, generated on ${timestamp()}"
@@ -28,7 +38,7 @@ source "proxmox-iso" "rocky-9" {
scsi_controller = "virtio-scsi-single" scsi_controller = "virtio-scsi-single"
disks { disks {
disk_size = "30G" disk_size = "30G"
storage_pool = "templates" storage_pool = "${var.proxmox_disk_storage}"
type = "scsi" type = "scsi"
format = "qcow2" format = "qcow2"
} }
@@ -37,7 +47,7 @@ source "proxmox-iso" "rocky-9" {
model = "virtio" model = "virtio"
} }
proxmox_url = "https://kamino.int.metaunix.net:8006/api2/json/" proxmox_url = "https://${var.proxmox_host}:8006/api2/json/"
insecure_skip_tls_verify = true insecure_skip_tls_verify = true
username = "${var.proxmox_apiuser}" username = "${var.proxmox_apiuser}"
password = "${var.proxmox_apitoken}" password = "${var.proxmox_apitoken}"
+12 -2
View File
@@ -1,3 +1,8 @@
variable "proxmox_host" {
type = string
default = "proxmox.example.com"
}
variable "proxmox_apiuser" { variable "proxmox_apiuser" {
type = string type = string
default = "packer" default = "packer"
@@ -8,6 +13,11 @@ variable "proxmox_apitoken" {
default = "changeme" default = "changeme"
} }
variable "proxmox_disk_storage" {
type = string
default = "packer"
}
source "proxmox-iso" "ubuntu-22" { source "proxmox-iso" "ubuntu-22" {
template_name = "ubuntu-22" template_name = "ubuntu-22"
template_description = "Ubuntu 22.04, generated on ${timestamp()}" template_description = "Ubuntu 22.04, generated on ${timestamp()}"
@@ -39,7 +49,7 @@ source "proxmox-iso" "ubuntu-22" {
scsi_controller = "virtio-scsi-single" scsi_controller = "virtio-scsi-single"
disks { disks {
disk_size = "30G" disk_size = "30G"
storage_pool = "templates" storage_pool = "${var.proxmox_disk_storage}"
type = "scsi" type = "scsi"
format = "qcow2" format = "qcow2"
} }
@@ -48,7 +58,7 @@ source "proxmox-iso" "ubuntu-22" {
model = "virtio" model = "virtio"
} }
proxmox_url = "https://kamino.int.metaunix.net:8006/api2/json/" proxmox_url = "https://${var.proxmox_host}:8006/api2/json/"
insecure_skip_tls_verify = true insecure_skip_tls_verify = true
username = "${var.proxmox_apiuser}" username = "${var.proxmox_apiuser}"
password = "${var.proxmox_apitoken}" password = "${var.proxmox_apitoken}"
+12 -2
View File
@@ -1,3 +1,8 @@
variable "proxmox_host" {
type = string
default = "proxmox.example.com"
}
variable "proxmox_apiuser" { variable "proxmox_apiuser" {
type = string type = string
default = "packer" default = "packer"
@@ -8,6 +13,11 @@ variable "proxmox_apitoken" {
default = "changeme" default = "changeme"
} }
variable "proxmox_disk_storage" {
type = string
default = "packer"
}
source "proxmox-iso" "ubuntu-24" { source "proxmox-iso" "ubuntu-24" {
template_name = "ubuntu-24" template_name = "ubuntu-24"
template_description = "Ubuntu 24.04, generated on ${timestamp()}" template_description = "Ubuntu 24.04, generated on ${timestamp()}"
@@ -39,7 +49,7 @@ source "proxmox-iso" "ubuntu-24" {
scsi_controller = "virtio-scsi-single" scsi_controller = "virtio-scsi-single"
disks { disks {
disk_size = "30G" disk_size = "30G"
storage_pool = "templates" storage_pool = "${var.proxmox_disk_storage}"
type = "scsi" type = "scsi"
format = "qcow2" format = "qcow2"
} }
@@ -48,7 +58,7 @@ source "proxmox-iso" "ubuntu-24" {
model = "virtio" model = "virtio"
} }
proxmox_url = "https://kamino.int.metaunix.net:8006/api2/json/" proxmox_url = "https://${var.proxmox_host}:8006/api2/json/"
insecure_skip_tls_verify = true insecure_skip_tls_verify = true
username = "${var.proxmox_apiuser}" username = "${var.proxmox_apiuser}"
password = "${var.proxmox_apitoken}" password = "${var.proxmox_apitoken}"