mirror of
https://github.com/GoodOlClint/PSProxmoxVE.git
synced 2026-07-26 07:58:14 +00:00
ddecafee91
Workflow now provisions a throwaway nested PVE VM via Terraform, runs integration tests against it, then destroys it. Uses proxmox-auto-install-assistant to bake the answer file and a first-boot script (installs qemu-guest-agent) directly into the ISO. IP is discovered via the QEMU guest agent on the parent PVE, eliminating the need for static IP configuration. Supports both PVE 8.x and 9.x via workflow_dispatch version selector. Skip provisioning with skip_provision=true to test against a pre-existing PVE. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
11 lines
332 B
Bash
Executable File
11 lines
332 B
Bash
Executable File
#!/bin/bash
|
|
# First-boot script for nested PVE test instances.
|
|
# Runs once after auto-install completes and the system reboots.
|
|
# Installs qemu-guest-agent so the parent PVE can discover the VM's IP via the guest agent API.
|
|
|
|
set -e
|
|
|
|
apt-get update -qq
|
|
apt-get install -y -qq qemu-guest-agent
|
|
systemctl enable --now qemu-guest-agent
|