summaryrefslogtreecommitdiffstats
path: root/ocata/vagrant/setup_compute.sh
blob: 56ef08b69a18d1c8251599cb7a83a3f46e1f7185 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/bin/bash

set -ex

cd devstack
cp /vagrant/compute.conf local.conf
ip=$(ip a s enp0s8 | 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

sudo apt-get update -y
sudo apt-get install -y putty
echo y | plink -ssh -l vagrant -pw vagrant 192.168.0.10 "bash /vagrant/setup_cell.sh"