Create SSH config for borg providers

This commit is contained in:
phil 2023-05-08 11:21:21 +02:00
parent fbdce3166f
commit f4152f9a5e
5 changed files with 23 additions and 14 deletions

7
templates/ssh_config.j2 Normal file
View file

@ -0,0 +1,7 @@
{% if 'borgbase' in borg_providers %}
Host *.repo.borgbase.com
IdentityFile {{ borg_ssh_key_file_path }}
{% elif 'hetzner' in borg_providers %}
Host *.your-storagebox.de
IdentityFile /root/.ssh/borgbackup
{% endif %}