]> mj.ucw.cz Git - jablonka.git/commitdiff
pyinfra: Host names, resolver7 master
authorMartin Mareš <mj@ucw.cz>
Fri, 21 Nov 2025 22:28:02 +0000 (23:28 +0100)
committerMartin Mareš <mj@ucw.cz>
Fri, 21 Nov 2025 22:28:02 +0000 (23:28 +0100)
pyinfra/known_hosts
pyinfra/resolvers.py

index aeae6124d2b6329799ac07276b01dfd84c7ef908..9c0f10681831453f7ece78b2a615040b901afeaf 100644 (file)
@@ -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
index 8449870fadb97f13f08f90d4116072ceb87044d5..d454f4a86acf68265dd854d09b7fcdad881122f6 100644 (file)
@@ -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',
     }
 )