Add some nomad actions for backups to test different formatting
This commit is contained in:
parent
efe7864cc9
commit
c5d5ab42b8
@ -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 = {
|
||||||
|
Loading…
Reference in New Issue
Block a user