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,6 +11,7 @@ variable "proxmox_apitoken" {
source "proxmox-iso" "almalinux-9" {
template_name = "almalinux-9"
template_description = "Almalinux 9.3, 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>"]
@ -40,6 +41,7 @@ source "proxmox-iso" "almalinux-9" {
username = "${var.proxmox_apiuser}"
password = "${var.proxmox_apitoken}"
node = "geonosis"
pool = "Templates"
iso_url = "https://repo.almalinux.org/almalinux/9.3/isos/x86_64/AlmaLinux-9.3-x86_64-boot.iso"
iso_checksum = "sha256:af5377a1d16bbe599ea91a8761ad645f2f54687075802bdc0c0703ee610182e9"
@ -54,4 +56,8 @@ source "proxmox-iso" "almalinux-9" {
build {
sources = ["source.proxmox-iso.almalinux-9"]
provisioner "shell" {
script = "scripts/rhel-setup.sh"
}
}