aboutsummaryrefslogtreecommitdiffstats
path: root/templates/moon_forming/run.sh
diff options
context:
space:
mode:
authorRHE <rebirthmonkey@gmail.com>2017-12-26 13:35:54 +0100
committerRHE <rebirthmonkey@gmail.com>2017-12-26 13:35:54 +0100
commit454e9c5f8664ea99ccea2417b6cc3ffb238cf834 (patch)
tree479a6d0fcee5ba6c17ea12370125e6681594128a /templates/moon_forming/run.sh
parent19a69441bbcc8b5e9e334f81c66d0f3720405fdd (diff)
moon v4 re-organization
Change-Id: I73665f739f35ae18175f98d0739567e403c1fa80 Signed-off-by: RHE <rebirthmonkey@gmail.com>
Diffstat (limited to 'templates/moon_forming/run.sh')
-rw-r--r--templates/moon_forming/run.sh44
1 files changed, 0 insertions, 44 deletions
diff --git a/templates/moon_forming/run.sh b/templates/moon_forming/run.sh
deleted file mode 100644
index 71543f9e..00000000
--- a/templates/moon_forming/run.sh
+++ /dev/null
@@ -1,44 +0,0 @@
-#!/usr/bin/env bash
-
-populate_args=$*
-
-echo "Waiting for Consul (http://consul:8500)"
-while ! python -c "import requests; req = requests.get('http://consul:8500')" 2>/dev/null ; do
- sleep 5 ;
- echo "."
-done
-
-echo "Consul (http://consul:8500) is up."
-
-python3 /root/conf2consul.py /etc/moon/moon.conf
-
-echo "Waiting for DB (tcp://db:3306)"
-while ! python -c "import socket, sys; s = socket.socket(socket.AF_INET, socket.SOCK_STREAM); s.connect(('db', 3306)); sys.exit(0)" 2>/dev/null ; do
- sleep 5 ;
- echo "."
-done
-
-echo "Database (http://db:3306) is up."
-
-moon_db_manager upgrade
-
-echo "Waiting for Keystone (http://keystone:5000)"
-while ! python -c "import requests; req = requests.get('http://keystone:5000')" 2>/dev/null ; do
- sleep 5 ;
- echo "."
-done
-
-echo "Keystone (http://keystone:5000) is up."
-
-echo "Waiting for Manager (http://manager:8082)"
-while ! python -c "import requests; req = requests.get('http://manager:8082')" 2>/dev/null ; do
- sleep 5 ;
- echo "."
-done
-
-echo "Manager (http://manager:8082) is up."
-
-cd /root
-
-python3 populate_default_values.py $populate_args /root/conf/rbac.py
-python3 populate_default_values.py $populate_args /root/conf/mls.py