From a3b26d9b48c04c51b15807184ace868294dbe7f9 Mon Sep 17 00:00:00 2001 From: Markos Chandras Date: Wed, 11 Oct 2017 15:13:04 +0100 Subject: 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 --- xci/xci-deploy.sh | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'xci') 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 #------------------------------------------------------------------------------- -- cgit 1.2.3-korg