summaryrefslogtreecommitdiffstats
path: root/vagrant/setup_compute.sh
blob: 0c3eba7b81758c8b1020a72a538e7d55f6848950 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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