From 134d7cab0ca9aa642dcc441f23f319995ceea818 Mon Sep 17 00:00:00 2001 From: Matt McEuen Date: Sat, 30 Dec 2017 13:57:25 -0600 Subject: [PATCH] Add support for out of branch variables This change allows users of the gate script to optionally override the location of the ansible inventory and variables files, so that they can live outside of the source tree. Change-Id: Ibe7666ce366c7ad34e8ee6ff5ef3f23589aa10ce --- tools/gate/devel/start.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/gate/devel/start.sh b/tools/gate/devel/start.sh index 7e4261aa9..2c10f93e9 100755 --- a/tools/gate/devel/start.sh +++ b/tools/gate/devel/start.sh @@ -18,8 +18,8 @@ set -ex : ${WORK_DIR:="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )/../../.."} export DEPLOY=${1:-"full"} export MODE=${2:-"local"} -export INVENTORY=${WORK_DIR}/tools/gate/devel/${MODE}-inventory.yaml -export VARS=${WORK_DIR}/tools/gate/devel/${MODE}-vars.yaml +export INVENTORY=${3:-${WORK_DIR}/tools/gate/devel/${MODE}-inventory.yaml} +export VARS=${4:-${WORK_DIR}/tools/gate/devel/${MODE}-vars.yaml} function ansible_install { cd /tmp