diff options
| author | Mark Asselstine <mark.asselstine@windriver.com> | 2017-11-22 11:08:46 -0500 |
|---|---|---|
| committer | Bruce Ashfield <bruce.ashfield@windriver.com> | 2017-11-27 10:39:51 -0500 |
| commit | fc1d523aa0f734ec88907f5b4ecc510d8fa56f51 (patch) | |
| tree | a0cc468741ea2449683fb93fc17b7756de9e61f3 /meta-openstack/recipes-devtools/python/python-keystone/wsgi-keystone.conf | |
| parent | 54c4cb239e3bfd8d9efe75f073aef8e4a671bc7b (diff) | |
| download | meta-cloud-services-fc1d523aa0f734ec88907f5b4ecc510d8fa56f51.tar.gz | |
python-keystone: get things working with stable/pike
Since we need to ensure the setup is run after postgresql is setup and
running we can't use a postinst as it runs too early in the boot
process. Instead we have a simple service which will run after
postgresql-init to complete the setup. On completion the service
disables itself, avoiding being run again on subsequent boots.
Update configuration data to match keystone setup as described on the
upstream project pages.
Signed-off-by: Mark Asselstine <mark.asselstine@windriver.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
Diffstat (limited to 'meta-openstack/recipes-devtools/python/python-keystone/wsgi-keystone.conf')
| -rw-r--r-- | meta-openstack/recipes-devtools/python/python-keystone/wsgi-keystone.conf | 73 |
1 files changed, 50 insertions, 23 deletions
diff --git a/meta-openstack/recipes-devtools/python/python-keystone/wsgi-keystone.conf b/meta-openstack/recipes-devtools/python/python-keystone/wsgi-keystone.conf index 91b95f6..febf1d7 100644 --- a/meta-openstack/recipes-devtools/python/python-keystone/wsgi-keystone.conf +++ b/meta-openstack/recipes-devtools/python/python-keystone/wsgi-keystone.conf | |||
| @@ -1,25 +1,52 @@ | |||
| 1 | Listen 8081 | 1 | Listen 5000 |
| 2 | <VirtualHost *:8081> | 2 | Listen 35357 |
| 3 | ServerAdmin webmaster@localhost | 3 | |
| 4 | WSGIApplicationGroup %{RESOURCE} | 4 | <VirtualHost *:5000> |
| 5 | WSGIDaemonProcess keystone threads=15 display-name=%{GROUP} | 5 | WSGIDaemonProcess keystone-public processes=5 threads=1 user=keystone group=keystone display-name=%{GROUP} |
| 6 | WSGIProcessGroup keystone | 6 | WSGIProcessGroup keystone-public |
| 7 | WSGIScriptAlias /keystone/main /var/www/cgi-bin/keystone/main | 7 | WSGIScriptAlias / /usr/bin/keystone-wsgi-public |
| 8 | WSGIScriptAlias /keystone/admin /var/www/cgi-bin/keystone/admin | 8 | WSGIApplicationGroup %{GLOBAL} |
| 9 | 9 | WSGIPassAuthorization On | |
| 10 | 10 | ErrorLogFormat "%{cu}t %M" | |
| 11 | <Location "/keystone"> | 11 | ErrorLog /var/log/apache2/keystone.log |
| 12 | Authtype none | 12 | CustomLog /var/log/apache2/keystone_access.log combined |
| 13 | </Location> | 13 | |
| 14 | 14 | <Directory /usr/bin> | |
| 15 | <Directory /var/www/cgi-bin/keystone/> | 15 | Require all granted |
| 16 | <IfVersion < 2.3> | 16 | </Directory> |
| 17 | Order allow,deny | 17 | </VirtualHost> |
| 18 | Allow from all | 18 | |
| 19 | </IfVersion> | 19 | <VirtualHost *:35357> |
| 20 | 20 | WSGIDaemonProcess keystone-admin processes=5 threads=1 user=keystone group=keystone display-name=%{GROUP} | |
| 21 | <IfVersion >= 2.3> | 21 | WSGIProcessGroup keystone-admin |
| 22 | Require all granted | 22 | WSGIScriptAlias / /usr/bin/keystone-wsgi-admin |
| 23 | </IfVersion> | 23 | WSGIApplicationGroup %{GLOBAL} |
| 24 | WSGIPassAuthorization On | ||
| 25 | ErrorLogFormat "%{cu}t %M" | ||
| 26 | ErrorLog /var/log/apache2/keystone.log | ||
| 27 | CustomLog /var/log/apache2/keystone_access.log combined | ||
| 28 | |||
| 29 | <Directory /usr/bin> | ||
| 30 | Require all granted | ||
| 24 | </Directory> | 31 | </Directory> |
| 25 | </VirtualHost> | 32 | </VirtualHost> |
| 33 | |||
| 34 | Alias /identity /usr/bin/keystone-wsgi-public | ||
| 35 | <Location /identity> | ||
| 36 | SetHandler wsgi-script | ||
| 37 | Options +ExecCGI | ||
| 38 | |||
| 39 | WSGIProcessGroup keystone-public | ||
| 40 | WSGIApplicationGroup %{GLOBAL} | ||
| 41 | WSGIPassAuthorization On | ||
| 42 | </Location> | ||
| 43 | |||
| 44 | Alias /identity_admin /usr/bin/keystone-wsgi-admin | ||
| 45 | <Location /identity_admin> | ||
| 46 | SetHandler wsgi-script | ||
| 47 | Options +ExecCGI | ||
| 48 | |||
| 49 | WSGIProcessGroup keystone-admin | ||
| 50 | WSGIApplicationGroup %{GLOBAL} | ||
| 51 | WSGIPassAuthorization On | ||
| 52 | </Location> | ||
