Improved on the post-install provisioning
This commit is contained in:
@ -11,6 +11,7 @@ variable "proxmox_apitoken" {
|
||||
source "proxmox-iso" "rocky-9" {
|
||||
template_name = "rocky-9"
|
||||
template_description = "Rocky Linux 9.3, generated on ${timestamp()}"
|
||||
vm_id = "201"
|
||||
boot_wait = "10s"
|
||||
boot_key_interval = "200ms"
|
||||
boot_command = ["<tab><wait1s>", " inst.ks=http://{{ .HTTPIP }}:{{ .HTTPPort }}/rocky-9-server.ks<enter><wait5m>"]
|
||||
@ -40,6 +41,7 @@ source "proxmox-iso" "rocky-9" {
|
||||
username = "${var.proxmox_apiuser}"
|
||||
password = "${var.proxmox_apitoken}"
|
||||
node = "geonosis"
|
||||
pool = "Templates"
|
||||
|
||||
iso_url = "https://download.rockylinux.org/pub/rocky/9/isos/x86_64/Rocky-9.3-x86_64-boot.iso"
|
||||
iso_checksum = "sha256:eb096f0518e310f722d5ebd4c69f0322df4fc152c6189f93c5c797dc25f3d2e1"
|
||||
@ -54,4 +56,8 @@ source "proxmox-iso" "rocky-9" {
|
||||
|
||||
build {
|
||||
sources = ["source.proxmox-iso.rocky-9"]
|
||||
|
||||
provisioner "shell" {
|
||||
script = "scripts/rhel-setup.sh"
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user