summaryrefslogtreecommitdiffstats
path: root/src/vagrant/kubeadm_onap/openstack/setup_compute.sh
diff options
context:
space:
mode:
authorGuo Ruijing <ruijing.guo@intel.com>2017-12-21 04:17:48 -0500
committerGuo Ruijing <ruijing.guo@intel.com>2017-12-21 04:46:35 -0500
commit09c951502f43c477d48903bc335905b2d5287295 (patch)
tree9cdc3180d96ea25bfb6cffd08e6b0ddc5c5f2184 /src/vagrant/kubeadm_onap/openstack/setup_compute.sh
parent35951994a9a6eafd94e59958b0c97d80a8660742 (diff)
onap deployment by kubeadm + onap oom
Change-Id: I4db577c754a4cd550482e40c2a96004faf65bd24 Signed-off-by: Guo Ruijing <ruijing.guo@intel.com>
Diffstat (limited to 'src/vagrant/kubeadm_onap/openstack/setup_compute.sh')
-rw-r--r--src/vagrant/kubeadm_onap/openstack/setup_compute.sh19
1 files changed, 19 insertions, 0 deletions
diff --git a/src/vagrant/kubeadm_onap/openstack/setup_compute.sh b/src/vagrant/kubeadm_onap/openstack/setup_compute.sh
new file mode 100644
index 0000000..92c18cf
--- /dev/null
+++ b/src/vagrant/kubeadm_onap/openstack/setup_compute.sh
@@ -0,0 +1,19 @@
+#!/usr/bin/env bash
+set -ex
+
+sudo pvcreate /dev/vdb
+sudo vgextend ubuntubox-vg /dev/vdb
+sudo lvextend -L+500G /dev/mapper/ubuntubox--vg-root
+sudo resize2fs /dev/mapper/ubuntubox--vg-root
+
+cd devstack
+cp /vagrant/compute.conf local.conf
+host=$(hostname)
+ip=$(ifconfig | grep 192.168.0 | cut -f2 -d: | cut -f1 -d' ')
+sed -i -e "s/HOSTIP/$ip/" -e "s/HOSTNAME/$host/" local.conf
+./stack.sh
+
+
+sudo apt-get update -y
+sudo apt-get install -y putty
+echo y | plink -ssh -l vagrant -pw vagrant 192.168.0.30 "bash /vagrant/setup_cell.sh"