2 # SPDX-license-identifier: Apache-2.0
3 ##############################################################################
4 # Copyright (c) 2016 Ericsson AB and others.
5 # All rights reserved. This program and the accompanying materials
6 # are made available under the terms of the Apache License, Version 2.0
7 # which accompanies this distribution, and is available at
8 # http://www.apache.org/licenses/LICENSE-2.0
9 ##############################################################################
14 # check distro to see if we support it
15 # we will have centos and suse supported in future
19 echo "Starting provisioning of 3 VMs"
22 echo "Distro $DISTRO is not supported!"
26 # remove previously cloned repos
27 /bin/rm -rf /opt/bifrost /opt/puppet-infracloud /opt/releng
29 # clone upstream bifrost repo and checkout the patch to verify
30 git clone https://git.openstack.org/openstack/bifrost /opt/bifrost
32 git fetch https://git.openstack.org/openstack/bifrost $GERRIT_REFSPEC && git checkout FETCH_HEAD
34 # clone puppet-infracloud
35 git clone https://git.openstack.org/openstack-infra/puppet-infracloud /opt/puppet-infracloud
37 # combine opnfv and upstream scripts/playbooks
38 cp -R $WORKSPACE/prototypes/bifrost/* /opt/bifrost/
40 # cleanup remnants of previous deployment
42 ./scripts/destroy-env.sh
44 # provision 3 VMs; jumphost, controller, and compute
46 ./scripts/test-bifrost-deployment.sh
48 # list the provisioned VMs