ci/deploy.sh, lib.sh: Align SSH_KEY with Jenkins 25/40725/7
authorAlexandru Avadanii <Alexandru.Avadanii@enea.com>
Thu, 31 Aug 2017 01:09:51 +0000 (03:09 +0200)
committerAlexandru Avadanii <Alexandru.Avadanii@enea.com>
Tue, 5 Sep 2017 00:20:57 +0000 (02:20 +0200)
commit0fed9ab50ef24816bf0979bece955763fd634189
tree1482c60408547cc757d63e1cec2ee5c890aa58b8
parent3a76d07dbd409b781abdb8520f55a1b20edf07db
ci/deploy.sh, lib.sh: Align SSH_KEY with Jenkins

Jenkins defines a build param also called SSH_KEY, which holds
the full path to our MCP private RSA key, as opposed to Fuel@OPNFV,
which uses the file basename as SSH_KEY.
Switch to using full path in SSH_KEY, while also moving the key
outside /tmp.

NOTE: When running `ci/deploy.sh` with sudo, key will land in
/root/opnfv/mcp.rsa unless SSH_KEY is set via env var.

While at it, bring back VM image storage dir param, allowing us
to drop one more reference to /tmp.

JIRA: FUEL-280

Change-Id: Id1cfa6dbe7b2e6f3915b22281da5957333718401
Signed-off-by: Alexandru Avadanii <Alexandru.Avadanii@enea.com>
.gitignore
ci/deploy.sh
mcp/deploy/images/.gitkeep [new file with mode: 0644]
mcp/scripts/lib.sh