replace job dependencies

This commit is contained in:
Bertrand Lanson 2023-08-22 18:47:37 +02:00
parent 082bad9837
commit 3804662ecc

View File

@ -2,13 +2,13 @@
resource "nomad_job" "this" {
for_each = var.jobs
depends_on = [
nomad_external_volume.this,
nomad_csi_volume.this,
nomad_csi_volume_registration.this,
consul_key_prefix.this,
# consul_config_entry.this
consul_intention.this
]
jobspec = file("${each.value}")
jobspec = file(each.value)
purge_on_destroy = true
hcl2 {
enabled = true