Merge "Allow doc-build.sh to ignore D000 of doc8"
[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 BRIDGE
21 BRIDGE=pxebr
22
23 # clone genesis repo and checkout the SR1 tag
24 #echo "Cloning genesis repo"
25 #cd $WORKSPACE
26 #GIT_SSL_NO_VERIFY=true git clone https://gerrit.opnfv.org/gerrit/genesis genesis
27 #cd genesis
28 #git checkout arno.2015.2.0
29
30 # cleanup first
31 #sudo $WORKSPACE/genesis/common/ci/clean.sh -base_config $WORKSPACE/genesis/foreman/ci/inventory/lf_pod2_ksgen_settings.yml
32
33 # prepare for Fuel Deployment
34 #sudo $WORKSPACE/genesis/common/ci/setup.sh
35
36 # log info to console
37 echo "Starting the deployment using $INSTALLER_TYPE. This could take some time..."
38 echo "--------------------------------------------------------"
39 echo
40
41 # start the deployment
42 echo "Issuing command"
43 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"
44
45 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
46
47 echo
48 echo "--------------------------------------------------------"
49 echo "Done!"