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:
Spyros Trigazis 2017-03-22 18:36:32 +01:00
parent 5c608fd93f
commit 7bb23e1368
1 changed files with 2 additions and 2 deletions

View File

@ -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