summaryrefslogtreecommitdiffstats
path: root/ocata/vagrant/setup_compute.sh
diff options
context:
space:
mode:
Diffstat (limited to 'ocata/vagrant/setup_compute.sh')
-rw-r--r--ocata/vagrant/setup_compute.sh14
1 files changed, 14 insertions, 0 deletions
diff --git a/ocata/vagrant/setup_compute.sh b/ocata/vagrant/setup_compute.sh
new file mode 100644
index 00000000..7b5964e1
--- /dev/null
+++ b/ocata/vagrant/setup_compute.sh
@@ -0,0 +1,14 @@
+#!/usr/bin/env bash
+
+set -e
+
+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"