Run backup batches on all hosts

This commit is contained in:
IamTheFij 2023-08-02 21:33:16 -07:00
parent fa0da05343
commit f66bd95fbb

View File

@ -18,14 +18,7 @@ job "backup%{ if batch_node != null }-oneoff-${batch_node}%{ endif }" {
} }
%{ endif ~} %{ endif ~}
%{ if batch_node == null ~} %{ if batch_node != null ~}
constraint {
attribute = "$${node.unique.name}"
operator = "set_contains_any"
# Only deploy to nodes running tasks to backup
value = "n1,n2"
}
%{ else ~}
constraint { constraint {
attribute = "$${node.unique.name}" attribute = "$${node.unique.name}"
value = "${batch_node}" value = "${batch_node}"