Move backup jobs to local dir

Makes debugging easier
This commit is contained in:
IamTheFij 2022-11-03 22:17:26 -07:00
parent 779db10abc
commit 39bd8aafaf

View File

@ -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 {