From 4c1be188401e8cf3aa7ff818f1e285756f2a4d7c Mon Sep 17 00:00:00 2001 From: Markos Chandras Date: Thu, 12 Oct 2017 09:11:59 +0100 Subject: xci: Clone all XCI scenarios in advance similar to a-r-r In order to plug the scenarios' roles properly, we need to have all roles physically present in advance. As such, add a opnfv-scenario-requirements.yml file which can be used to populate the roles directory with all the scenarios. Change-Id: I0cdadb63849e4565c31559817660d23217879053 Signed-off-by: Markos Chandras --- xci/xci-deploy.sh | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) (limited to 'xci/xci-deploy.sh') diff --git a/xci/xci-deploy.sh b/xci/xci-deploy.sh index 1e70d0dd..d33e0c80 100755 --- a/xci/xci-deploy.sh +++ b/xci/xci-deploy.sh @@ -50,7 +50,7 @@ fi # override any of them. #------------------------------------------------------------------------------- # find where are we -XCI_PATH="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" +export XCI_PATH="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" # source user vars source $XCI_PATH/config/user-vars # source pinned versions @@ -128,6 +128,18 @@ fi # TODO: The xci playbooks can be put into a playbook which will be done later. +# Clone OPNFV scenario repositories +#------------------------------------------------------------------------------- +# This playbook +# - removes existing scenario roles +# - clones OPNFV scenario roles based on the file/opnfv-scenario-requirements.yml file +#------------------------------------------------------------------------------- +echo "Info: Cloning OPNFV scenario repositories" +echo "-------------------------------------------------------------------------" +cd $XCI_PATH/playbooks +ansible-playbook ${XCI_ANSIBLE_VERBOSITY} -i inventory get-opnfv-scenario-requirements.yml +echo "-------------------------------------------------------------------------" + #------------------------------------------------------------------------------- # Get scenario variables overrides #------------------------------------------------------------------------------- -- cgit 1.2.3-korg