From 39bd8aafafc5c7999dfdbdfc8ed685e0a6aea4f6 Mon Sep 17 00:00:00 2001 From: Ian Fijolek Date: Thu, 3 Nov 2022 22:17:26 -0700 Subject: [PATCH] Move backup jobs to local dir Makes debugging easier --- services/backups/backup.nomad | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/services/backups/backup.nomad b/services/backups/backup.nomad index b1ae0a6..ba11aa2 100644 --- a/services/backups/backup.nomad +++ b/services/backups/backup.nomad @@ -99,14 +99,8 @@ job "backup%{ if batch_node != null }-oneoff-${batch_node}%{ endif }" { "-$${NOMAD_META_task}", "$${NOMAD_META_job_name}", %{ endif ~} - "/jobs/node-jobs.hcl", + "$${NOMAD_TASK_DIR}/node-jobs.hcl", ] - - mount { - type = "bind" - target = "/jobs" - source = "jobs" - } } vault { @@ -193,7 +187,7 @@ ${file("${module_path}/jobs/nzbget.hcl")} {{ end -}} {{ end -}} EOF - destination = "jobs/node-jobs.hcl" + destination = "local/node-jobs.hcl" } resources {