mirror of
https://github.com/GoodOlClint/PSProxmoxVE.git
synced 2026-08-10 06:16:53 +00:00
8c963fb684
Provisions a throwaway nested Proxmox VE instance on an existing host using bpg/proxmox provider. Includes unattended install via answer file, API wait script, and automatic API token creation. Designed for CI-driven integration test environments. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
26 lines
505 B
Terraform
26 lines
505 B
Terraform
output "pve_test_host" {
|
|
value = var.test_vm_ip
|
|
}
|
|
|
|
output "pve_test_port" {
|
|
value = 8006
|
|
}
|
|
|
|
output "pve_test_url" {
|
|
value = "https://${var.test_vm_ip}:8006"
|
|
}
|
|
|
|
output "pve_test_vm_id" {
|
|
value = var.vm_id
|
|
}
|
|
|
|
output "pve_test_node_name" {
|
|
value = "pve"
|
|
description = "Default node name inside a fresh PVE install"
|
|
}
|
|
|
|
output "pve_test_api_token" {
|
|
value = fileexists("${path.module}/.api-token") ? trimspace(file("${path.module}/.api-token")) : "not-yet-created"
|
|
sensitive = true
|
|
}
|