d797cf9f699f36a856c7c747b2747001e0938c1d
[releng.git] / jjb / fuel / fuel-deploy.sh
1 #!/bin/bash
2 set -o errexit
3 set -o nounset
4 set -o pipefail
5
6 # source the file so we get OPNFV vars
7 source latest.properties
8
9 # echo the info about artifact that is used during the deployment
10 echo "Using $(echo $OPNFV_ARTIFACT_URL | cut -d'/' -f3) for deployment"
11
12 # create TMPDIR if it doesn't exist
13 export TMPDIR=$HOME/tmpdir
14 mkdir -p $TMPDIR
15
16 # change permissions down to TMPDIR
17 chmod a+x $HOME
18 chmod a+x $TMPDIR
19
20 # set CONFDIR, BRIDGE
21 POD_CONF_DIR=$WORKSPACE/deploy/templates/hardware_environment/conf/linux_foundation_lab/pod2
22 BRIDGE=pxebr
23
24 # clone genesis repo and checkout the SR1 tag
25 #echo "Cloning genesis repo"
26 #cd $WORKSPACE
27 #GIT_SSL_NO_VERIFY=true git clone https://gerrit.opnfv.org/gerrit/genesis genesis
28 #cd genesis
29 #git checkout arno.2015.2.0
30
31 # cleanup first
32 #sudo $WORKSPACE/genesis/common/ci/clean.sh -base_config $WORKSPACE/genesis/foreman/ci/inventory/lf_pod2_ksgen_settings.yml
33
34 # prepare for Fuel Deployment
35 #sudo $WORKSPACE/genesis/common/ci/setup.sh
36
37 # log info to console
38 echo "Starting the deployment using $INSTALLER_TYPE. This could take some time..."
39 echo "--------------------------------------------------------"
40 echo
41
42 # start the deployment
43 echo "Issuing command"
44 echo "sudo $WORKSPACE/ci/deploy.sh -iso $WORKSPACE/opnfv.iso -dea $POD_CONF_DIR/dea.yaml -dha $POD_CONF_DIR/dha.yaml -s $TMPDIR -b $BRIDGE -nh"
45
46 sudo $WORKSPACE/ci/deploy.sh -iso $WORKSPACE/opnfv.iso -dea $POD_CONF_DIR/dea.yaml -dha $POD_CONF_DIR/dha.yaml -s $TMPDIR -b $BRIDGE -nh
47
48 echo
49 echo "--------------------------------------------------------"
50 echo "Done!"