From b42d6887dd5b3a5257d0331c19df369f57d65dc9 Mon Sep 17 00:00:00 2001 From: Kiara Grouwstra Date: Wed, 22 Oct 2025 13:55:00 +0200 Subject: [PATCH] make upload depend on hash Signed-off-by: Kiara Grouwstra --- deployment/run/tf-proxmox-template/main.tf | 3 +++ 1 file changed, 3 insertions(+) diff --git a/deployment/run/tf-proxmox-template/main.tf b/deployment/run/tf-proxmox-template/main.tf index ec4dcc61..453b3d61 100644 --- a/deployment/run/tf-proxmox-template/main.tf +++ b/deployment/run/tf-proxmox-template/main.tf @@ -38,6 +38,9 @@ data "external" "hash" { # - hash in name over overwrite # won't notice file changes: https://github.com/bpg/terraform-provider-proxmox/issues/677 resource "proxmox_virtual_environment_file" "upload" { + depends_on = [ + data.external.hash, + ] content_type = "import" # https://192.168.51.81:8006/#v1:0:=storage%2Fnode051%2Flocal:4::=contentIso::::: # PVE -> Datacenter -> Storage -> local -> Edit -> General -> Content -> check Import + Disk Images -> OK