From: Martin Mareš Date: Fri, 21 Nov 2025 22:28:02 +0000 (+0100) Subject: pyinfra: Host names, resolver7 X-Git-Url: http://mj.ucw.cz/gitweb/?a=commitdiff_plain;p=jablonka.git pyinfra: Host names, resolver7 --- diff --git a/pyinfra/known_hosts b/pyinfra/known_hosts index aeae612..9c0f106 100644 --- a/pyinfra/known_hosts +++ b/pyinfra/known_hosts @@ -1,3 +1,4 @@ 10.33.160.2 ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIDMfMxFMPazG1qiiBDZo6fcDEMkUD9OLtDjhN9SZqeEj 10.33.148.1 ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIALadb/dog11xNa9IYKysnfYHwXbRQnk7sUtyTT+KpSH 10.32.148.1 ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIMmYoMgFPnqkD10+shdaIOTtm4aXhqzbEEcU1nBdCE2P +10.33.160.3 ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIDMfMxFMPazG1qiiBDZo6fcDEMkUD9OLtDjhN9SZqeEj diff --git a/pyinfra/resolvers.py b/pyinfra/resolvers.py index 8449870..d454f4a 100644 --- a/pyinfra/resolvers.py +++ b/pyinfra/resolvers.py @@ -1,13 +1,14 @@ hosts = ( [ - '10.33.160.2', # resolver6 - ('10.32.148.1', {'unbound_dir': '/etc/unbound/conf.d'}) # dusk + ('resolver6', {'ssh_hostname': '10.33.160.2'}), + ('resolver7', {'ssh_hostname': '10.33.160.3'}), + ('dusk', {'ssh_hostname': '10.32.148.1', 'unbound_dir': '/etc/unbound/conf.d'}) ], { - 'ssh_user': 'root', - # pyinfra uses paramiko, which is unable to parse my ~/.ssh/authorized_keys - # that contains @cert-authority lines. - 'ssh_known_hosts_file': 'known_hosts', - 'unbound_dir': '/etc/unbound/unbound.conf.d', + 'ssh_user': 'root', + # pyinfra uses paramiko, which is unable to parse my ~/.ssh/authorized_keys + # that contains @cert-authority lines. + 'ssh_known_hosts_file': 'known_hosts', + 'unbound_dir': '/etc/unbound/unbound.conf.d', } )