summaryrefslogtreecommitdiffstats
path: root/xci/xci-deploy.sh
diff options
context:
space:
mode:
authorMarkos Chandras <mchandras@suse.de>2017-10-11 15:13:04 +0100
committerMarkos Chandras <mchandras@suse.de>2017-10-17 16:24:45 +0100
commita3b26d9b48c04c51b15807184ace868294dbe7f9 (patch)
treeae3c74408c2612b997649aa7621da693b40e7bbe /xci/xci-deploy.sh
parent9036d1c5fde99a57c08528293784de653efab675 (diff)
xci: xci-deploy.sh: Allow scenarios to overrides XCI variables.
Scenario may want to override variables exported by the XCI so allow them to define their own 'xci_overrides' file in the root directory of the role to do so. Change-Id: I6648eb43831a2aecc08d745a8c0fc191ce56e1b2 Signed-off-by: Markos Chandras <mchandras@suse.de>
Diffstat (limited to 'xci/xci-deploy.sh')
-rwxr-xr-xxci/xci-deploy.sh7
1 files changed, 7 insertions, 0 deletions
diff --git a/xci/xci-deploy.sh b/xci/xci-deploy.sh
index d73cf5cd..1e70d0dd 100755
--- a/xci/xci-deploy.sh
+++ b/xci/xci-deploy.sh
@@ -129,6 +129,13 @@ fi
# TODO: The xci playbooks can be put into a playbook which will be done later.
#-------------------------------------------------------------------------------
+# Get scenario variables overrides
+#-------------------------------------------------------------------------------
+if [[ -f $XCI_PATH/scenarios/${OPNFV_SCENARIO:-_no_scenario_}/xci_overrides ]]; then
+ source $XCI_PATH/scenarios/$OPNFV_SCENARIO/xci_overrides
+fi
+
+#-------------------------------------------------------------------------------
# Start provisioning VM nodes
#-------------------------------------------------------------------------------
# This playbook