Skip to content

Commit 9c03019

Browse files
authored
Add symlink to automatically find jumphost key in cloud key management command (#108)
Insert a symlink from the cloud key to a default key name in order to let cloud key management command automatically pick up the correct jumphost key without the need for `.ssh/config`.
2 parents 70fe52b + bc2b784 commit 9c03019

File tree

3 files changed

+6
-0
lines changed

3 files changed

+6
-0
lines changed

Dockerfile.centos7

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1396,6 +1396,8 @@ RUN if [ "${ENABLE_CLOUD}" = "True" ]; then \
13961396
[ -n "${CLOUD_JUMPHOST_KEY}" ] || CLOUD_JUMPHOST_KEY="cloud-jumphost-key" ; \
13971397
ln -s ../state/secrets/${CLOUD_JUMPHOST_KEY} .ssh/${CLOUD_JUMPHOST_KEY} ; \
13981398
ln -s ../state/secrets/${CLOUD_JUMPHOST_KEY}.pub .ssh/${CLOUD_JUMPHOST_KEY}.pub ; \
1399+
ln -s ${CLOUD_JUMPHOST_KEY} .ssh/id_rsa ; \
1400+
ln -s ${CLOUD_JUMPHOST_KEY}.pub .ssh/id_rsa.pub ; \
13991401
fi;
14001402

14011403
# link relevant py trac ini into default location if no TRAC_INI_PATH is set here

Dockerfile.rocky8

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1414,6 +1414,8 @@ RUN if [ "${ENABLE_CLOUD}" = "True" ]; then \
14141414
[ -n "${CLOUD_JUMPHOST_KEY}" ] || CLOUD_JUMPHOST_KEY="cloud-jumphost-key" ; \
14151415
ln -s ../state/secrets/${CLOUD_JUMPHOST_KEY} .ssh/${CLOUD_JUMPHOST_KEY} ; \
14161416
ln -s ../state/secrets/${CLOUD_JUMPHOST_KEY}.pub .ssh/${CLOUD_JUMPHOST_KEY}.pub ; \
1417+
ln -s ${CLOUD_JUMPHOST_KEY} .ssh/id_rsa ; \
1418+
ln -s ${CLOUD_JUMPHOST_KEY}.pub .ssh/id_rsa.pub ; \
14171419
fi;
14181420

14191421
# link relevant py trac ini into default location if no TRAC_INI_PATH is set here

Dockerfile.rocky9

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1290,6 +1290,8 @@ RUN if [ "${ENABLE_CLOUD}" = "True" ]; then \
12901290
[ -n "${CLOUD_JUMPHOST_KEY}" ] || CLOUD_JUMPHOST_KEY="cloud-jumphost-key" ; \
12911291
ln -s ../state/secrets/${CLOUD_JUMPHOST_KEY} .ssh/${CLOUD_JUMPHOST_KEY} ; \
12921292
ln -s ../state/secrets/${CLOUD_JUMPHOST_KEY}.pub .ssh/${CLOUD_JUMPHOST_KEY}.pub ; \
1293+
ln -s ${CLOUD_JUMPHOST_KEY} .ssh/id_rsa ; \
1294+
ln -s ${CLOUD_JUMPHOST_KEY}.pub .ssh/id_rsa.pub ; \
12931295
fi;
12941296

12951297
# link relevant py trac ini into default location if no TRAC_INI_PATH is set here

0 commit comments

Comments
 (0)