From: Markos Chandras Date: Wed, 11 Oct 2017 14:13:04 +0000 (+0100) Subject: xci: xci-deploy.sh: Allow scenarios to overrides XCI variables. X-Git-Tag: 6.0.0~252^2~2 X-Git-Url: https://gerrit.opnfv.org/gerrit/gitweb?a=commitdiff_plain;h=a3b26d9b48c04c51b15807184ace868294dbe7f9;p=releng-xci.git 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 --- 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 @@ -128,6 +128,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 #-------------------------------------------------------------------------------