Added build files for Rocky and Almalinux 10; updated Rocky and Almalinux 9 to 9.6

This commit is contained in:
2025-07-06 18:52:23 -04:00
parent 935a16088b
commit 9c4a117620
6 changed files with 166 additions and 22 deletions

View File

@ -0,0 +1,72 @@
variable "proxmox_apiuser" {
type = string
default = "packer"
}
variable "proxmox_apitoken" {
type = string
default = "changeme"
}
source "proxmox-iso" "almalinux-10" {
template_name = "almalinux-10"
template_description = "Almalinux 10.0, generated on ${timestamp()}"
vm_id = "207"
boot_wait = "10s"
boot_key_interval = "200ms"
boot_command = ["e<wait1s>", "<down><down><down><left> inst.ks=http://{{ .HTTPIP }}:{{ .HTTPPort }}/almalinux-server.ks", "<wait>", "<leftCtrlOn>x<leftCtrlOff>", "<wait3s>"]
http_directory = "http"
http_port_max = "8089"
http_port_min = "8080"
os = "l26"
cores = "2"
sockets = "1"
cpu_type = "host"
memory = "2048"
scsi_controller = "virtio-scsi-single"
disks {
disk_size = "30G"
storage_pool = "templates"
type = "scsi"
format = "qcow2"
}
network_adapters {
bridge = "vmbr0"
model = "virtio"
}
proxmox_url = "https://kamino.int.metaunix.net:8006/api2/json/"
insecure_skip_tls_verify = true
username = "${var.proxmox_apiuser}"
password = "${var.proxmox_apitoken}"
node = "kamino"
pool = "Templates"
boot_iso {
type = "scsi"
iso_url = "https://repo.almalinux.org/almalinux/10/isos/x86_64/AlmaLinux-10.0-x86_64-boot.iso"
iso_checksum = "sha256:a1549729bfb66a28e3546c953033c9928eae7280917bb1c490983dba3bb9941c"
iso_download_pve = true
iso_storage_pool = "iso"
unmount = true
}
ssh_username = "xadmin"
ssh_password = "packer"
ssh_timeout = "20m"
}
build {
sources = ["source.proxmox-iso.almalinux-10"]
provisioner "shell" {
script = "scripts/rhel-install.sh"
}
provisioner "file" {
source = "scripts/initial-setup.sh"
destination = "/home/xadmin/initial-setup.sh"
}
}

View File

@ -10,11 +10,11 @@ variable "proxmox_apitoken" {
source "proxmox-iso" "almalinux-9" {
template_name = "almalinux-9"
template_description = "Almalinux 9.5, generated on ${timestamp()}"
template_description = "Almalinux 9.6, generated on ${timestamp()}"
vm_id = "204"
boot_wait = "10s"
boot_key_interval = "200ms"
boot_command = ["<tab><wait1s>", " inst.ks=http://{{ .HTTPIP }}:{{ .HTTPPort }}/almalinux-9-server.ks<enter><wait5m>"]
boot_command = ["<tab><wait1s>", " inst.ks=http://{{ .HTTPIP }}:{{ .HTTPPort }}/almalinux-server.ks", "<enter>", "<wait5s>"]
http_directory = "http"
http_port_max = "8089"
@ -46,8 +46,8 @@ source "proxmox-iso" "almalinux-9" {
boot_iso {
type = "scsi"
iso_url = "https://repo.almalinux.org/almalinux/9.5/isos/x86_64/AlmaLinux-9.5-x86_64-boot.iso"
iso_checksum = "sha256:3038fb71a29d33c3c93117bd8f4c3f612cb152dce057c666b6b11dfa793fb65c"
iso_url = "https://repo.almalinux.org/almalinux/9.6/isos/x86_64/AlmaLinux-9.6-x86_64-boot.iso"
iso_checksum = "sha256:113521ec7f28aa4ab71ba4e5896719da69a0cc46cf341c4ebbd215877214f661"
iso_download_pve = true
iso_storage_pool = "iso"
unmount = true