Use export in ansible_ssh_env file

In order to be able to rerun quickstart.sh with only specific tags
(for example, to only run tempest on a deployed overcloud), we need
to actually export these variables rather than just set them in the
current session.

Change-Id: I3ad9b3ba9783a05e3e62a36da5c3787cba090557
This commit is contained in:
John Trowbridge 2016-10-20 12:53:04 -04:00
parent a1f52be1ae
commit 72cb47fc71
1 changed files with 5 additions and 3 deletions

View File

@ -1,5 +1,7 @@
: ${OPT_WORKDIR:=$HOME/.quickstart}
export OPT_WORKDIR=${OPT_WORKDIR:=$HOME/.quickstart}
#ssh config
: ${SSH_CONFIG=$OPT_WORKDIR/ssh.config.ansible}
: ${ANSIBLE_SSH_ARGS="-F ${SSH_CONFIG}"}
export SSH_CONFIG=${SSH_CONFIG=$OPT_WORKDIR/ssh.config.ansible}
#make sure ssh config exists
touch $SSH_CONFIG
export ANSIBLE_SSH_ARGS=${ANSIBLE_SSH_ARGS="-F ${SSH_CONFIG}"}