aboutsummaryrefslogtreecommitdiff
path: root/docker
diff options
context:
space:
mode:
authorSam Yaple <sam@yaple.net>2015-07-02 13:09:58 +0000
committerSam Yaple <sam@yaple.net>2015-07-03 14:17:02 +0000
commit11597cc2f46f6bd5fdda34e3d6897f6f11188679 (patch)
treefebed60783940662fdcc2670065ed83ff2c5b840 /docker
parentc97ccd6a5f7330d88dfba94a8226948fb320cba6 (diff)
downloadkolla-11597cc2f46f6bd5fdda34e3d6897f6f11188679.tar.gz
kolla-11597cc2f46f6bd5fdda34e3d6897f6f11188679.zip
Updated keystone for wsgi in config-external
This will switch config-external to using wsgi vs evenlet for keystone. Partially Implements: blueprint ansible-service Change-Id: I85a88c813ed36d827916796199dad735b2d44b40
Diffstat (limited to 'docker')
-rw-r--r--docker/common/keystone/config-external.sh6
-rwxr-xr-xdocker/common/keystone/start.sh12
2 files changed, 13 insertions, 5 deletions
diff --git a/docker/common/keystone/config-external.sh b/docker/common/keystone/config-external.sh
index 76e4acfff..54df0f3a1 100644
--- a/docker/common/keystone/config-external.sh
+++ b/docker/common/keystone/config-external.sh
@@ -1,5 +1,11 @@
#!/bin/bash
+if [[ -f /opt/kolla/keystone/wsgi-keystone.conf ]]; then
+ cp /opt/kolla/keystone/wsgi-keystone.conf /etc/httpd/conf.d/
+ chown root:keystone /etc/httpd/conf.d/wsgi-keystone.conf
+ chmod 0644 /etc/httpd/conf.d/wsgi-keystone.conf
+fi
+
if [[ -f /opt/kolla/keystone/keystone.conf ]]; then
cp /opt/kolla/keystone/keystone.conf /etc/keystone/keystone.conf
chown keystone: /etc/keystone/keystone.conf
diff --git a/docker/common/keystone/start.sh b/docker/common/keystone/start.sh
index 4dce4c757..a7b2462b3 100755
--- a/docker/common/keystone/start.sh
+++ b/docker/common/keystone/start.sh
@@ -2,17 +2,19 @@
set -o errexit
-CMD="/usr/bin/keystone-all"
-ARGS=""
+CMD="/usr/sbin/httpd"
+ARGS="-DFOREGROUND"
-# loading common functions
+# Loading common functions.
source /opt/kolla/kolla-common.sh
+# Config-internal script exec out of this function, it does not return here.
set_configs
-# Bootstrap and exit if BOOTSTRAP variable is set
+# Bootstrap and exit if KOLLA_BOOTSTRAP variable is set. This catches all cases
+# of the KOLLA_BOOTSTRAP variable being set, including empty.
if [[ "${!KOLLA_BOOTSTRAP[@]}" ]]; then
- su -c "keystone-manage db_sync" keystone
+ su -s /bin/sh -c "keystone-manage db_sync" keystone
exit 0
fi