4 if [[ $(whoami) != "root" ]]; then
5 echo "Error: This script must be run as root!"
9 # remove previously cloned repos
10 /bin/rm -rf /opt/bifrost /opt/puppet-infracloud /opt/releng
12 # clone upstream repos
13 git clone https://git.openstack.org/openstack/bifrost /opt/bifrost
14 git clone https://git.openstack.org/openstack-infra/puppet-infracloud /opt/puppet-infracloud
16 # clone opnfv releng repo
17 git clone https://gerrit.opnfv.org/gerrit/releng /opt/releng
19 # combine opnfv and upstream scripts/playbooks
20 cp -R /opt/releng/prototypes/bifrost/* /opt/bifrost/
22 # cleanup remnants of previous deployment
24 ./scripts/destroy-env.sh
26 # provision 3 VMs; jumphost, controller, and compute
28 ./scripts/test-bifrost-deployment.sh
30 # list the provisioned VMs