mirror of
https://github.com/GoodOlClint/PSProxmoxVE.git
synced 2026-07-26 07:58:14 +00:00
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) <noreply@anthropic.com>
This commit is contained in:
@@ -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]
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user