tripleo-quickstart/ansible_ssh_env.sh
John Trowbridge 72cb47fc71 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
2016-10-20 17:11:08 +00:00

8 lines
240 B
Bash

export OPT_WORKDIR=${OPT_WORKDIR:=$HOME/.quickstart}
#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}"}