From 1b79fe4cb004a72fdcf68b32f92290a461072668 Mon Sep 17 00:00:00 2001 From: vincent Date: Thu, 29 Feb 2024 21:35:12 +0100 Subject: [PATCH] Borgmatic: add know host --- nomad-job/borgmatic.nomad | 10 ++++++++++ 1 file changed, 10 insertions(+) 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= <