X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=jjb%2Fintegration%2Finclude-raw-integration-configure-clustering.sh;h=0950622f247c4f18cbc0c65d209cf996c2fd418b;hb=ae312cb8340c4d3a84598d1d7d73fb379015f240;hp=f758b51df603b15817cbe2c2e109bad85b6d21ad;hpb=8a4b303d3cfab90125af7772a7a872a78e229d52;p=releng%2Fbuilder.git diff --git a/jjb/integration/include-raw-integration-configure-clustering.sh b/jjb/integration/include-raw-integration-configure-clustering.sh index f758b51df..0950622f2 100644 --- a/jjb/integration/include-raw-integration-configure-clustering.sh +++ b/jjb/integration/include-raw-integration-configure-clustering.sh @@ -1,234 +1,131 @@ -echo "##################################################" -echo "## include-raw-integration-configure-clustering ##" -echo "##################################################" - -# this script configures replication on a single ODL controller. -# files touched are akka.conf modules-shards.conf - - - -echo "##################################" -echo "## Loop through controller IPs #" -echo "##################################" - -declare CONTROLLERIPS=($(cat slave_addresses.txt | grep CONTROLLER | awk -F = '{print $2}')) -declare -p CONTROLLERIPS - -echo "######################################################" -echo "## include-raw-integration-configuration_functions ##" -echo "######################################################" - -# writes the functions needed for configuring clustering to -# configuration-functions in the WORKSPACE -env - -set -x - -cat > ${WORKSPACE}/configuration-functions < scriptplan.txt + cat scriptplan.txt + for line in $( egrep -v '(^[[:space:]]*#|^[[:space:]]*$)' scriptplan.txt ); do + echo "Executing ${line}..." + source ${line} + done +fi -#less ${WORKSPACE}/configuration-functions +# Create the configuration script to be run on controllers. +cat > ${WORKSPACE}/configuration-script.sh < ${WORKSPACE}/configuration-script.sh <