diff --git a/keystone/templates/bin/_keystone-api.sh.tpl b/keystone/templates/bin/_keystone-api.sh.tpl index e47df9a839..d7ea57bdcf 100644 --- a/keystone/templates/bin/_keystone-api.sh.tpl +++ b/keystone/templates/bin/_keystone-api.sh.tpl @@ -19,6 +19,11 @@ set -ex COMMAND="${@:-start}" function start () { + + for KEYSTONE_WSGI_SCRIPT in keystone-wsgi-public keystone-wsgi-admin; do + cp -a $(type -p ${KEYSTONE_WSGI_SCRIPT}) /var/www/cgi-bin/keystone/ + done + if [ -f /etc/apache2/envvars ]; then # Loading Apache2 ENV variables source /etc/apache2/envvars diff --git a/keystone/templates/deployment.yaml b/keystone/templates/deployment.yaml index e710dd44f3..51613ec6a8 100644 --- a/keystone/templates/deployment.yaml +++ b/keystone/templates/deployment.yaml @@ -76,6 +76,8 @@ spec: volumeMounts: - name: etckeystone mountPath: /etc/keystone + - name: wsgi-keystone + mountPath: /var/www/cgi-bin/keystone - name: keystone-etc mountPath: /etc/keystone/keystone.conf subPath: keystone.conf @@ -108,6 +110,8 @@ spec: volumes: - name: etckeystone emptyDir: {} + - name: wsgi-keystone + emptyDir: {} - name: keystone-etc configMap: name: keystone-etc diff --git a/keystone/templates/etc/_wsgi-keystone.conf.tpl b/keystone/templates/etc/_wsgi-keystone.conf.tpl index 228e14cca8..6fdef25fa4 100644 --- a/keystone/templates/etc/_wsgi-keystone.conf.tpl +++ b/keystone/templates/etc/_wsgi-keystone.conf.tpl @@ -21,7 +21,7 @@ LogFormat "%{X-Forwarded-For}i %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-A WSGIDaemonProcess keystone-public processes=1 threads=4 user=keystone group=keystone display-name=%{GROUP} WSGIProcessGroup keystone-public - WSGIScriptAlias / /var/www/cgi-bin/keystone/main + WSGIScriptAlias / /var/www/cgi-bin/keystone/keystone-wsgi-public WSGIApplicationGroup %{GLOBAL} WSGIPassAuthorization On = 2.4> @@ -37,7 +37,7 @@ LogFormat "%{X-Forwarded-For}i %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-A WSGIDaemonProcess keystone-admin processes=1 threads=4 user=keystone group=keystone display-name=%{GROUP} WSGIProcessGroup keystone-admin - WSGIScriptAlias / /var/www/cgi-bin/keystone/admin + WSGIScriptAlias / /var/www/cgi-bin/keystone/keystone-wsgi-admin WSGIApplicationGroup %{GLOBAL} WSGIPassAuthorization On = 2.4>