summaryrefslogtreecommitdiffstats
path: root/pike/vagrant/setup_compute.sh
blob: 3fa0bc8fe2856135da33636614509ed449e13d2d (plain)
1
2
3
4
5
6
7
8
9
10
#!/usr/bin/env bash

set -e

cd devstack
cp /vagrant/compute.conf local.conf
ip=$(ip a s eth1 | grep inet | grep -v inet6 | sed "s/.*inet //" | cut -f1 -d'/')
host=$(hostname)
sed -i -e "s/HOSTIP/$ip/" -e "s/HOSTNAME/$host/" local.conf
./stack.sh