diff --git a/nomad-job/borgmatic.nomad b/nomad-job/borgmatic.nomad index 50a9c90..da5edba 100644 --- a/nomad-job/borgmatic.nomad +++ b/nomad-job/borgmatic.nomad @@ -25,6 +25,7 @@ job "borgmatic" { "/exports:/exports", "local/borgmatic.d:/etc/borgmatic.d", "secret/id_rsa:/root/.ssh/id_rsa", + "secret/known_hosts:/root/.ssh/known_hosts", "/exports/nomad/borgmatic:/root/.cache/borg", ] @@ -207,6 +208,15 @@ consistency: destination = "secret/id_rsa" perms= "700" } + template { + data= <