mirror of
https://github.com/GoodOlClint/PSProxmoxVE.git
synced 2026-09-03 18:55:33 +00:00
08ee3ae249
The local dev environment had drifted badly from CI. Remove the parts that no longer describe anything real, and make the rest match how CI actually runs. Delete tests/dev.ps1. It wrapped run-integration.sh, which CI calls directly, and duplicated the module build that script already performs internally. As a second entry point it drifted: it still offered the PVE 8 leg retired in #88, mounted the Docker socket for storage containers replaced by the storage VM in #87, and pointed its remote-host examples at a runner decommissioned in the ARC migration. All four documents describing it used a positional syntax that bound the bare word to -Tests and then fell through to -Shell, so every documented command silently opened a container shell. Recorded as D019. Delete tests/infrastructure/runner/, a self-hosted-runner-in-Docker superseded by Actions Runner Controller. Make disk_storage and iso_storage required. Their defaults named a NAS that the lab replaced with Ceph, and CI overrides both from repository variables, so the defaults only ever misled local runs. require_env now fails at the top of a run rather than at terraform apply, and the descriptions point at tests/.env.test because cmd_provision deletes terraform.tfvars before applying. preflight-cleanup.sh no longer falls back to the literal "local" storage. An unset TF_VAR_iso_storage now skips only the ISO branch, leaving VM destroy and state cleanup intact, and emits a workflow annotation: force-cleanup is the only cleanup CI runs and it wipes Terraform state, so a silent skip strands the uploaded ISO with nothing left to reclaim it. Drop docker-ce-cli and the /var/run/docker.sock mount. Nothing in the container has called docker since #87 moved storage into a VM; the remaining docker calls run inside that VM over SSH. The CI job image is built from the same target, so this also removes a third-party apt repository from its supply chain. Rewrite tests/.env.test.example against what the code now requires, and fix the documented commands in CLAUDE.md, README.md, copilot-instructions.md and the integration README.
26 lines
992 B
Plaintext
26 lines
992 B
Plaintext
# Connection to your existing Proxmox host
|
|
proxmox_endpoint = "https://pve.example.com:8006"
|
|
proxmox_api_token = "root@pam!terraform=xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
|
|
target_node = "pve"
|
|
|
|
test_vm_password = "root-password-for-the-nested-pve-nodes"
|
|
|
|
# Storage pools. Both are required — there are no defaults.
|
|
# iso_storage must accept the "iso" AND "import" content types.
|
|
#
|
|
# NOTE: this file is only read when you invoke terraform by hand.
|
|
# run-integration.sh deletes terraform.tfvars before applying; for that path
|
|
# set TF_VAR_disk_storage / TF_VAR_iso_storage in tests/.env.test instead.
|
|
#
|
|
# pve_instances and pve_isos are required too, but are machine-generated —
|
|
# run-integration.sh builds them into $WORK_DIR/instances.tfvars.json and
|
|
# passes that with -var-file. A by-hand apply needs the same file.
|
|
disk_storage = "local-lvm"
|
|
iso_storage = "local"
|
|
|
|
# Optional overrides
|
|
# cores = 4
|
|
# memory = 8192
|
|
# disk_size = 64
|
|
# network_bridge = "vmbr0"
|