From 1fe2e0710fa0c3a5b81d62787659450164258592 Mon Sep 17 00:00:00 2001 From: cronekorkn Date: Tue, 1 Aug 2023 12:57:27 +0200 Subject: [PATCH] macbook custom ssh key --- hooks/known_hosts.py | 4 +--- nodes/macbook.py | 5 +++++ 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/hooks/known_hosts.py b/hooks/known_hosts.py index 0db2845..d3ae014 100644 --- a/hooks/known_hosts.py +++ b/hooks/known_hosts.py @@ -6,7 +6,5 @@ def apply_start(repo, target, nodes, interactive=False, **kwargs): file.write('\n'.join(sorted( line for node in repo.nodes - if node.has_bundle('ssh') - for line in node.metadata.get('ssh/is_known_as') - + for line in node.metadata.get('ssh/is_known_as', set()) ))) diff --git a/nodes/macbook.py b/nodes/macbook.py index 0959284..a9dbe25 100644 --- a/nodes/macbook.py +++ b/nodes/macbook.py @@ -8,6 +8,11 @@ ], 'metadata': { 'id': '597eee25-8908-4569-a6d6-3f823050faa1', + 'ssh': { + 'is_known_as': { + '|1|oHr6Zv9mhqLU/CiR+vqUK93e/yY=|PPcAe+GU5Yi6OVvIzrP8bJI3EPs= ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIMNMmL0lKPjvNBTKC90bXoIsXjhMVr5/6ego5KvdpO4+', + }, + }, }, 'os': 'macos', 'cmd_wrapper_outer': 'sh -c {}',