don't pass xos_repo_url and xos_repo_branch unless set by caller
remove playbook defaults that are already set as role defaults
Change-Id: I5929ace60b7941cde9100a440a9331c12fd629b1
diff --git a/scripts/single-node-pod.sh b/scripts/single-node-pod.sh
index 789a879..6726467 100755
--- a/scripts/single-node-pod.sh
+++ b/scripts/single-node-pod.sh
@@ -48,7 +48,14 @@
function setup_openstack() {
cd ~/platform-install
- extra_vars="xos_repo_url=$XOS_REPO_URL xos_repo_branch=$XOS_BRANCH"
+ extra_vars="single_node_pod_script=true"
+
+ if [[ "$XOS_REPO_URL" != "" ]]; then
+ extra_vars="$extra_vars xos_repo_url=$XOS_REPO_URL"
+ fi
+ if [[ "$XOS_BRANCH" != "" ]]; then
+ extra_vars="$extra_vars xos_repo_branch=$XOS_BRANCH"
+ fi
# check if running on cloudlab
if [[ -x /usr/testbed/bin/mkextrafs ]]
@@ -126,8 +133,6 @@
SETUP_BRANCH="master"
SETUP_REPO_URL="https://github.com/opencord/platform-install"
INVENTORY="inventory/single-localhost"
-XOS_BRANCH="master"
-XOS_REPO_URL="https://github.com/opencord/xos"
DIAGNOSTICS=1
while getopts "b:dehi:p:r:ts:" opt; do