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

@ -10,7 +10,8 @@ variable "proxmox_apitoken" {
source "proxmox-iso" "ubuntu-22" {
template_name = "ubuntu-22"
template_description = "Rocky Linux 9.3, generated on ${timestamp()}"
template_description = "Ubuntu 22.04, generated on ${timestamp()}"
vm_id = "205"
boot_wait = "10s"
boot_key_interval = "200ms"
boot_command = [
@ -53,7 +54,8 @@ source "proxmox-iso" "ubuntu-22" {
insecure_skip_tls_verify = true
username = "${var.proxmox_apiuser}"
password = "${var.proxmox_apitoken}"
node = "kamino"
node = "geonosis"
pool = "Templates"
iso_url = "https://releases.ubuntu.com/22.04.4/ubuntu-22.04.4-live-server-amd64.iso"
iso_checksum = "sha256:45f873de9f8cb637345d6e66a583762730bbea30277ef7b32c9c3bd6700a32b2"
@ -68,4 +70,8 @@ source "proxmox-iso" "ubuntu-22" {
build {
sources = ["source.proxmox-iso.ubuntu-22"]
provisioner "shell" {
script = "scripts/debian-setup.sh"
}
}