Add some nomad actions for backups to test different formatting

This commit is contained in:
IamTheFij 2024-01-23 12:05:56 -08:00
parent efe7864cc9
commit c5d5ab42b8

View File

@ -87,9 +87,19 @@ job "backup%{ if batch_node != null }-oneoff-${batch_node}%{ endif }" {
] ]
} }
action "unlock" { action "unlockenv" {
command = "sh"
args = ["-c", "/bin/resticscheduler -once -unlock all $${NOMAD_TASK_DIR}/node-jobs.hcl"]
}
action "unlocktmpl" {
command = "/bin/resticscheduler" command = "/bin/resticscheduler"
args = ["-once", "-unlock", "all", "$${NOMAD_TASK_DIR}/node-jobs.hcl"] args = ["-once", "-unlock", "all", "{{ env 'NOMAD_TASK_DIR' }}/node-jobs.hcl"]
}
action "unlockhc" {
command = "/bin/resticscheduler"
args = ["-once", "-unlock", "all", "/local/node-jobs.hcl"]
} }
env = { env = {