Make backup jobids static so they work on clean deploy

This commit is contained in:
IamTheFij 2023-11-30 09:55:08 -08:00
parent b218633c2c
commit 2d733b278c

View File

@ -22,7 +22,9 @@ resource "nomad_job" "backup-oneoff" {
} }
locals { locals {
all_job_ids = toset(flatten([[for job in resource.nomad_job.backup-oneoff : job.id], [resource.nomad_job.backup.id]])) # NOTE: This can't be dynamic in first deploy since these values are not known
# all_job_ids = toset(flatten([[for job in resource.nomad_job.backup-oneoff : job.id], [resource.nomad_job.backup.id]]))
all_job_ids = toset(["backup", "backup-oneoff-n1", "backup-oneoff-n2", "backup-oneoff-pi4"])
} }
resource "nomad_acl_policy" "secrets_mysql" { resource "nomad_acl_policy" "secrets_mysql" {