openstack-virtual-baremetal/bin/ovb-instack
2017-05-25 10:16:53 -05:00

46 lines
1.3 KiB
Bash
Executable File

#!/bin/bash
set -ex
# When not running my local cloud we don't want these set
if [ ${LOCAL:-1} -eq 1 ]
then
export http_proxy=http://roxy:3128
curl -O http://openstack/CentOS-7-x86_64-GenericCloud-1704.qcow2
export DIB_LOCAL_IMAGE=CentOS-7-x86_64-GenericCloud-1704.qcow2
export DIB_DISTRIBUTION_MIRROR=http://mirror.centos.org/centos
export no_proxy=9.1.1.1,192.0.2.1,9.1.1.2,192.0.2.2,192.168.0.1,192.168.0.2,192.168.24.1,192.168.24.2
fi
sudo yum install -y git
rm -rf git-tripleo-ci
git clone https://git.openstack.org/openstack-infra/tripleo-ci git-tripleo-ci
echo '#!/bin/bash' > tripleo.sh
echo 'git-tripleo-ci/scripts/tripleo.sh $@' >> tripleo.sh
chmod +x tripleo.sh
export OVERCLOUD_PINGTEST_OLD_HEATCLIENT=0
export TRIPLEOSH=/home/centos/tripleo.sh
$TRIPLEOSH --repo-setup
cat << EOF > undercloud.conf
[DEFAULT]
undercloud_hostname=undercloud.localdomain
enable_telemetry = false
enable_legacy_ceilometer_api = false
enable_ui = false
enable_validations = false
enable_tempest = false
local_mtu = 1450
EOF
$TRIPLEOSH --undercloud
$TRIPLEOSH --overcloud-images
$TRIPLEOSH --register-nodes --introspect-nodes
sleep 60
export OVERCLOUD_DEPLOY_ARGS="--libvirt-type qemu"
$TRIPLEOSH --overcloud-deploy
$TRIPLEOSH --overcloud-pingtest --skip-pingtest-cleanup