summaryrefslogtreecommitdiffstats
path: root/src/vagrant/kubeadm_onap/openstack/setup_compute.sh
blob: 92c18cf7c00a5e91e4f67aa13942499aa8dd02cf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
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"