Borgmatic: add know host
This commit is contained in:
parent
6848ffa05b
commit
1b79fe4cb0
@ -25,6 +25,7 @@ job "borgmatic" {
|
|||||||
"/exports:/exports",
|
"/exports:/exports",
|
||||||
"local/borgmatic.d:/etc/borgmatic.d",
|
"local/borgmatic.d:/etc/borgmatic.d",
|
||||||
"secret/id_rsa:/root/.ssh/id_rsa",
|
"secret/id_rsa:/root/.ssh/id_rsa",
|
||||||
|
"secret/known_hosts:/root/.ssh/known_hosts",
|
||||||
"/exports/nomad/borgmatic:/root/.cache/borg",
|
"/exports/nomad/borgmatic:/root/.cache/borg",
|
||||||
]
|
]
|
||||||
|
|
||||||
@ -207,6 +208,15 @@ consistency:
|
|||||||
destination = "secret/id_rsa"
|
destination = "secret/id_rsa"
|
||||||
perms= "700"
|
perms= "700"
|
||||||
}
|
}
|
||||||
|
template {
|
||||||
|
data= <<EOH
|
||||||
|
[u304977.your-storagebox.de]:23 ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIICf9svRenC/PLKIL9nk6K/pxQgoiFC41wTNvoIncOxs
|
||||||
|
[u304977.your-storagebox.de]:23 ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEA5EB5p/5Hp3hGW1oHok+PIOH9Pbn7cnUiGmUEBrCVjnAw+HrKyN8bYVV0dIGllswYXwkG/+bgiBlE6IVIBAq+JwVWu1Sss3KarHY3OvFJUXZoZyRRg/Gc/+LRCE7lyKpwWQ70dbelGRyyJFH36eNv6ySXoUYtGkwlU5IVaHPApOxe4LHPZa/qhSRbPo2hwoh0orCtgejRebNtW5nlx00DNFgsvn8Svz2cIYLxsPVzKgUxs8Zxsxgn+Q/UvR7uq4AbAhyBMLxv7DjJ1pc7PJocuTno2Rw9uMZi1gkjbnmiOh6TTXIEWbnroyIhwc8555uto9melEUmWNQ+C+PwAK+MPw==
|
||||||
|
[u304977.your-storagebox.de]:23 ecdsa-sha2-nistp521 AAAAE2VjZHNhLXNoYTItbmlzdHA1MjEAAAAIbmlzdHA1MjEAAACFBAGK0po6usux4Qv2d8zKZN1dDvbWjxKkGsx7XwFdSUCnF19Q8psHEUWR7C/LtSQ5crU/g+tQVRBtSgoUcE8T+FWp5wBxKvWG2X9gD+s9/4zRmDeSJR77W6gSA/+hpOZoSE+4KgNdnbYSNtbZH/dN74EG7GLb/gcIpbUUzPNXpfKl7mQitw==
|
||||||
|
EOH
|
||||||
|
destination = "secret/known_hosts"
|
||||||
|
perms="700"
|
||||||
|
}
|
||||||
resources {
|
resources {
|
||||||
memory = 300
|
memory = 300
|
||||||
memory_max = 1000
|
memory_max = 1000
|
||||||
|
Loading…
Reference in New Issue
Block a user