Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
K
Kolla Ansible
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Very Demiurge Very Mindful
Kolla Ansible
Commits
241b9c08
Commit
241b9c08
authored
7 years ago
by
Zuul
Committed by
Gerrit Code Review
7 years ago
Browse files
Options
Downloads
Plain Diff
Merge "Use the pbr generated wsgi binary file located in binary folder"
parents
37f6e92b
9d5bafab
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
ansible/roles/keystone/templates/wsgi-keystone.conf.j2
+12
-2
12 additions, 2 deletions
ansible/roles/keystone/templates/wsgi-keystone.conf.j2
with
12 additions
and
2 deletions
ansible/roles/keystone/templates/wsgi-keystone.conf.j2
+
12
−
2
View file @
241b9c08
{% set keystone_log_dir = '/var/log/kolla/keystone' %}
{% set keystone_log_dir = '/var/log/kolla/keystone' %}
{% set python_path = '/usr/lib/python2.7/site-packages' if kolla_install_type == 'binary' else '/var/lib/kolla/venv/lib/python2.7/site-packages' %}
{% set python_path = '/usr/lib/python2.7/site-packages' if kolla_install_type == 'binary' else '/var/lib/kolla/venv/lib/python2.7/site-packages' %}
{% set binary_path = '/usr/bin' if kolla_install_type == 'binary' else '/var/lib/kolla/venv/bin' %}
Listen {{ api_interface_address }}:{{ keystone_public_port }}
Listen {{ api_interface_address }}:{{ keystone_public_port }}
Listen {{ api_interface_address }}:{{ keystone_admin_port }}
Listen {{ api_interface_address }}:{{ keystone_admin_port }}
...
@@ -7,10 +8,19 @@ ServerSignature Off
...
@@ -7,10 +8,19 @@ ServerSignature Off
ServerTokens Prod
ServerTokens Prod
TraceEnable off
TraceEnable off
<Directory "{{ binary_path }}">
<FilesMatch "^keystone-wsgi-(public|admin)$">
AllowOverride None
Options None
Require all granted
</FilesMatch>
</Directory>
<VirtualHost *:{{ keystone_public_port }}>
<VirtualHost *:{{ keystone_public_port }}>
WSGIDaemonProcess keystone-public processes={{ openstack_service_workers }} threads=1 user=keystone group=keystone display-name=%{GROUP} python-path={{ python_path }}
WSGIDaemonProcess keystone-public processes={{ openstack_service_workers }} threads=1 user=keystone group=keystone display-name=%{GROUP} python-path={{ python_path }}
WSGIProcessGroup keystone-public
WSGIProcessGroup keystone-public
WSGIScriptAlias /
/var/www/cgi-bin/keystone/main
WSGIScriptAlias /
{{ binary_path }}/keystone-wsgi-public
WSGIApplicationGroup %{GLOBAL}
WSGIApplicationGroup %{GLOBAL}
WSGIPassAuthorization On
WSGIPassAuthorization On
<IfVersion >= 2.4>
<IfVersion >= 2.4>
...
@@ -24,7 +34,7 @@ TraceEnable off
...
@@ -24,7 +34,7 @@ TraceEnable off
<VirtualHost *:{{ keystone_admin_port }}>
<VirtualHost *:{{ keystone_admin_port }}>
WSGIDaemonProcess keystone-admin processes={{ openstack_service_workers }} threads=1 user=keystone group=keystone display-name=%{GROUP} python-path={{ python_path }}
WSGIDaemonProcess keystone-admin processes={{ openstack_service_workers }} threads=1 user=keystone group=keystone display-name=%{GROUP} python-path={{ python_path }}
WSGIProcessGroup keystone-admin
WSGIProcessGroup keystone-admin
WSGIScriptAlias /
/var/www/cgi-bin
/keystone
/
admin
WSGIScriptAlias /
{{ binary_path }}
/keystone
-wsgi-
admin
WSGIApplicationGroup %{GLOBAL}
WSGIApplicationGroup %{GLOBAL}
WSGIPassAuthorization On
WSGIPassAuthorization On
<IfVersion >= 2.4>
<IfVersion >= 2.4>
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment