mirror of
https://github.com/GoodOlClint/PSProxmoxVE.git
synced 2026-08-28 16:06:59 +00:00
feat(ci): automated nested PVE provisioning for integration tests
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>
This commit is contained in:
@@ -3,16 +3,12 @@ proxmox_endpoint = "https://pve.example.com:8006"
|
||||
proxmox_api_token = "root@pam!terraform=xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
|
||||
target_node = "pve"
|
||||
|
||||
# Path to PVE ISO (download from proxmox.com/en/downloads)
|
||||
iso_file = "/path/to/proxmox-ve_9.1-1.iso"
|
||||
|
||||
# Network config for nested PVE (must be routable from CI runner)
|
||||
test_vm_ip = "192.168.1.200"
|
||||
test_vm_gateway = "192.168.1.1"
|
||||
# Auto-install ISO (prepared by scripts/prepare-auto-iso.sh, then uploaded)
|
||||
iso_file_id = "local:iso/proxmox-ve_9.1-1-auto.iso"
|
||||
disk_storage = "local-lvm"
|
||||
|
||||
# Optional overrides
|
||||
# cores = 4
|
||||
# memory = 8192
|
||||
# disk_size = 64
|
||||
# disk_storage = "local-lvm"
|
||||
# network_bridge = "vmbr0"
|
||||
|
||||
Reference in New Issue
Block a user