Add fd.io cert manually to demo VNFs
[demo.git] / vagrant / setup_compute.sh
1 #!/usr/bin/env bash
2 set -ex
3
4 cd devstack
5 cp /vagrant/compute.conf local.conf
6 host=$(hostname)
7 ip=$(ifconfig | grep 192.168.0 | cut -f2 -d: | cut -f1 -d' ')
8 sed -i -e "s/HOSTIP/$ip/" -e "s/HOSTNAME/$host/" local.conf
9 ./stack.sh
10
11 sudo pvcreate /dev/sdb
12 sudo vgextend vagrant-vg /dev/sdb
13 sudo lvextend -L +800G /dev/mapper/vagrant--vg-root
14 sudo resize2fs /dev/mapper/vagrant--vg-root
15
16 sudo pvcreate /dev/sdc
17 sudo vgextend stack-volumes-lvmdriver-1 /dev/sdc