new baremetal configuration
[releng.git] / jjb / compass4nfv / compass-deploy-bare.sh
1 #!/bin/bash
2 set -x
3
4 # log info to console
5 echo "Starting the deployment on baremetal environment using $INSTALLER_TYPE. This could take some time..."
6 echo "--------------------------------------------------------"
7 echo
8
9 export CONFDIR=$WORKSPACE/deploy/conf/hardware_environment/huawei_us_lab/pod1
10 export ISO_URL=file://$BUILD_DIRECTORY/compass.iso
11 export INSTALL_NIC=eth0
12
13 cd $WORKSPACE
14
15 export OS_VERSION=${{COMPASS_OS_VERSION}}
16 export OPENSTACK_VERSION=${{COMPASS_OPENSTACK_VERSION}}
17 ./deploy.sh --dha $CONFDIR/dha.yml --network $CONFDIR/network.yml
18 if [ $? -ne 0 ]; then
19     echo "depolyment failed!"
20     deploy_ret=1
21 fi
22
23 echo
24 echo "--------------------------------------------------------"
25 echo "Done!"
26
27 ssh_options="-o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no"
28 sshpass -p root scp 2>/dev/null $ssh_options root@${{INSTALLER_IP}}:/var/ansible/run/openstack_${{COMPASS_OPENSTACK_VERSION}}-opnfv2/ansible.log ./  &> /dev/null
29
30 exit $deploy_ret