From 94d5fe99444b9b30394f71c52b516068fedab635 Mon Sep 17 00:00:00 2001 From: Clint Branham Date: Wed, 25 Mar 2026 17:01:45 -0500 Subject: [PATCH] fix: PVE VMs depend on answer server container Terraform creates resources in parallel. Without depends_on, PVE VMs could boot and start the auto-installer before the HTTP answer server container is running, causing "could not find answer file" errors. Co-Authored-By: Claude Opus 4.6 (1M context) --- tests/infrastructure/main.tf | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/infrastructure/main.tf b/tests/infrastructure/main.tf index df66f34..a1e07f2 100644 --- a/tests/infrastructure/main.tf +++ b/tests/infrastructure/main.tf @@ -90,6 +90,10 @@ resource "proxmox_virtual_environment_vm" "nested_pve" { started = true + # VMs must not boot until the HTTP answer server is running, + # otherwise the PVE auto-installer can't fetch its answer file. + depends_on = [docker_container.answer_server] + lifecycle { ignore_changes = [started, cdrom] }