ci: Rename ssh key
For multinode jobs a key with the default name id_rsa already exists. Add a key for magnum named id_rsa_magnum. Co-Authored-By: yatinkarel <yatin.karel@nectechnologies.in> Change-Id: I343e27a6e7311d7d0033bc089293f945c3af2ef8
This commit is contained in:
parent
5c608fd93f
commit
7bb23e1368
|
@ -27,9 +27,9 @@ PRIVATE_KEY=
|
|||
|
||||
echo "If private key is specified, save to temp and use that; else, use default"
|
||||
if [[ "$KEYPAIR" == "default" ]]; then
|
||||
PRIVATE_KEY=$(readlink -f ~/.ssh/id_rsa)
|
||||
PRIVATE_KEY=$(readlink -f ~/.ssh/id_rsa_magnum)
|
||||
else
|
||||
PRIVATE_KEY="$(mktemp id_rsa.$SSH_IP.XXX)"
|
||||
PRIVATE_KEY="$(mktemp id_rsa_magnum.$SSH_IP.XXX)"
|
||||
echo -en "$KEYPAIR" > $PRIVATE_KEY
|
||||
fi
|
||||
|
||||
|
|
Loading…
Reference in New Issue