diff --git a/backups/backup.nomad b/backups/backup.nomad index c8f87d1..ac178c5 100644 --- a/backups/backup.nomad +++ b/backups/backup.nomad @@ -136,6 +136,24 @@ ${file("${module_path}/${job_file}")} {{ end -}} {{ end -}} %{ endfor ~} + +# Dummy job to keep task healthy on node without any stateful services +job "Dummy" { + schedule = "0 0 1 1 0" + + config { + repo = "/local/dummy-repo" + passphrase = env("BACKUP_PASSPHRASE") + } + + backup { + paths = ["/local/node-jobs.hcl"] + } + + forget { + KeepLast = 1 + } +} EOF destination = "local/node-jobs.hcl" }