summaryrefslogtreecommitdiffstats
path: root/pike/vagrant/setup_compute.sh
diff options
context:
space:
mode:
Diffstat (limited to 'pike/vagrant/setup_compute.sh')
-rw-r--r--pike/vagrant/setup_compute.sh10
1 files changed, 10 insertions, 0 deletions
diff --git a/pike/vagrant/setup_compute.sh b/pike/vagrant/setup_compute.sh
new file mode 100644
index 00000000..3fa0bc8f
--- /dev/null
+++ b/pike/vagrant/setup_compute.sh
@@ -0,0 +1,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