Skip to content

Commit 9809576

Browse files
committed
Add SSH_AUTH_SOCK to teuthology container
This helps teuthology container to use forwarded agent ssh key. Signed-off-by: Vallari Agrawal <[email protected]>
1 parent 39b79c8 commit 9809576

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

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)