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" {
type = string
default = "packer"
@@ -8,6 +13,11 @@ variable "proxmox_apitoken" {
default = "changeme"
}
variable "proxmox_disk_storage" {
type = string
default = "packer"
}
source "proxmox-iso" "rocky-10" {
template_name = "rocky-10"
template_description = "Rocky Linux 10.0, generated on ${timestamp()}"
@@ -28,7 +38,7 @@ source "proxmox-iso" "rocky-10" {
scsi_controller = "virtio-scsi-single"
disks {
disk_size = "30G"
storage_pool = "templates"
storage_pool = "${var.proxmox_disk_storage}"
type = "scsi"
format = "qcow2"
}
@@ -37,7 +47,7 @@ source "proxmox-iso" "rocky-10" {
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
username = "${var.proxmox_apiuser}"
password = "${var.proxmox_apitoken}"
+12 -2
View File
@@ -1,3 +1,8 @@
variable "proxmox_host" {
type = string
default = "proxmox.example.com"
}
variable "proxmox_apiuser" {
type = string
default = "packer"
@@ -8,6 +13,11 @@ variable "proxmox_apitoken" {
default = "changeme"
}
variable "proxmox_disk_storage" {
type = string
default = "packer"
}
source "proxmox-iso" "rocky-9" {
template_name = "rocky-9"
template_description = "Rocky Linux 9.6, generated on ${timestamp()}"
@@ -28,7 +38,7 @@ source "proxmox-iso" "rocky-9" {
scsi_controller = "virtio-scsi-single"
disks {
disk_size = "30G"
storage_pool = "templates"
storage_pool = "${var.proxmox_disk_storage}"
type = "scsi"
format = "qcow2"
}
@@ -37,7 +47,7 @@ source "proxmox-iso" "rocky-9" {
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
username = "${var.proxmox_apiuser}"
password = "${var.proxmox_apitoken}"