From 5a14ee34314b6d500c63dc19523ee4748734c8c0 Mon Sep 17 00:00:00 2001 From: Guo Ruijing Date: Wed, 10 May 2017 15:05:30 -0700 Subject: setup onap demo by vagrant Change-Id: I7d46f7f6081e7aed0cc2ea2506a47925171f9be2 Co-Authored-By: Chen, Wei Signed-off-by: Guo Ruijing --- vagrant/setup_compute.sh | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 vagrant/setup_compute.sh (limited to 'vagrant/setup_compute.sh') diff --git a/vagrant/setup_compute.sh b/vagrant/setup_compute.sh new file mode 100644 index 00000000..0c3eba7b --- /dev/null +++ b/vagrant/setup_compute.sh @@ -0,0 +1,17 @@ +#!/usr/bin/env bash +set -ex + +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 pvcreate /dev/sdb +sudo vgextend vagrant-vg /dev/sdb +sudo lvextend -L +800G /dev/mapper/vagrant--vg-root +sudo resize2fs /dev/mapper/vagrant--vg-root + +sudo pvcreate /dev/sdc +sudo vgextend stack-volumes-lvmdriver-1 /dev/sdc -- cgit 1.2.3-korg