Commit 52b78d78 by John Jarvis

add extra vars

parent 30868994
...@@ -29,6 +29,12 @@ if [[ -z $BUILD_USER_ID ]]; then ...@@ -29,6 +29,12 @@ if [[ -z $BUILD_USER_ID ]]; then
BUILD_USER_ID=edx-sandbox BUILD_USER_ID=edx-sandbox
fi fi
if [[ ! -z "$extra_vars" ]]; then
for arg in $extra_vars; do
ansible_extra_vars+=" -e $arg"
done
fi
if [[ -z $WORKSPACE ]]; then if [[ -z $WORKSPACE ]]; then
dir=$(dirname $0) dir=$(dirname $0)
...@@ -51,7 +57,7 @@ if [[ ! -f $BOTO_CONFIG ]]; then ...@@ -51,7 +57,7 @@ if [[ ! -f $BOTO_CONFIG ]]; then
fi fi
extra_vars_file="/var/tmp/extra-vars-$$.yml" extra_vars_file="/var/tmp/extra-vars-$$.yml"
extra_var_arg="-e@${extra_vars_file}" extra_var_arg="-e@${extra_vars_file} $extra_vars"
if [[ $edx_internal == "true" ]]; then if [[ $edx_internal == "true" ]]; then
# if this is a an edx server include # if this is a an edx server include
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment