Skip to content

Commit ed49ec1

Browse files
authored
Merge pull request #23 from zmc/gibba-fixes
Allow authentication with real ssh key and also forwarded agent key
2 parents 3070975 + 9809576 commit ed49ec1

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

ceph_devstack/resources/ceph/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ async def _get_ssh_keys(self):
7474
check=True,
7575
force_local=True,
7676
)
77-
self.pubkey_path = f"{privkey_path}.pub"
77+
self.pubkey_path = f"{privkey_path}.pub"
7878
self.privkey_path = privkey_path
7979

8080

ceph_devstack/resources/ceph/containers.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -333,6 +333,14 @@ def create_cmd(self):
333333
"-v",
334334
f"{ansible_inv}/secrets:/etc/ansible/secrets",
335335
]
336+
ssh_auth_socket = os.environ.get("SSH_AUTH_SOCK")
337+
if ssh_auth_socket:
338+
cmd += [
339+
"-v",
340+
f"{ssh_auth_socket}:{ssh_auth_socket}",
341+
"-e",
342+
f"SSH_AUTH_SOCK={ssh_auth_socket}",
343+
]
336344
cmd += [
337345
"--name",
338346
"{name}",

0 commit comments

Comments
 (0)