summaryrefslogtreecommitdiffstats
path: root/src/vagrant/kubeadm_onap/openstack/bootstrap.sh
diff options
context:
space:
mode:
Diffstat (limited to 'src/vagrant/kubeadm_onap/openstack/bootstrap.sh')
-rw-r--r--src/vagrant/kubeadm_onap/openstack/bootstrap.sh14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/vagrant/kubeadm_onap/openstack/bootstrap.sh b/src/vagrant/kubeadm_onap/openstack/bootstrap.sh
new file mode 100644
index 0000000..9978c81
--- /dev/null
+++ b/src/vagrant/kubeadm_onap/openstack/bootstrap.sh
@@ -0,0 +1,14 @@
+#!/usr/bin/env bash
+set -ex
+
+sudo apt-get update -y
+sudo apt-get install git -y
+git clone https://github.com/openstack-dev/devstack
+cd devstack; git checkout stable/ocata
+sudo apt-get install openvswitch-switch -y
+sudo ovs-vsctl add-br br-ex
+inet=$(ip a | grep 'inet.*eth2' | cut -f6 -d' ')
+sudo ip addr flush eth2
+sudo ovs-vsctl add-port br-ex eth2
+sudo ifconfig br-ex $inet up
+echo "source /vagrant/openrc" >> $HOME/.bash_profile