2016-03-26 14:12:58 -03:00
|
|
|
{% set keystone_log_dir = '/var/log/kolla/keystone' %}
|
2015-11-18 07:22:17 +01:00
|
|
|
{% set python_path = '/usr/lib/python2.7/site-packages' if kolla_install_type == 'binary' else '/var/lib/kolla/venv/lib/python2.7/site-packages' %}
|
2015-07-02 13:09:58 +00:00
|
|
|
Listen {{ hostvars[inventory_hostname]['ansible_' + api_interface]['ipv4']['address'] }}:{{ keystone_public_port }}
|
|
|
|
Listen {{ hostvars[inventory_hostname]['ansible_' + api_interface]['ipv4']['address'] }}:{{ keystone_admin_port }}
|
|
|
|
|
|
|
|
<VirtualHost *:{{ keystone_public_port }}>
|
2015-11-18 07:22:17 +01:00
|
|
|
WSGIDaemonProcess keystone-public processes=5 threads=1 user=keystone group=keystone display-name=%{GROUP} python-path={{ python_path }}
|
2015-07-02 13:09:58 +00:00
|
|
|
WSGIProcessGroup keystone-public
|
|
|
|
WSGIScriptAlias / /var/www/cgi-bin/keystone/main
|
|
|
|
WSGIApplicationGroup %{GLOBAL}
|
|
|
|
WSGIPassAuthorization On
|
|
|
|
<IfVersion >= 2.4>
|
|
|
|
ErrorLogFormat "%{cu}t %M"
|
|
|
|
</IfVersion>
|
2016-03-26 14:12:58 -03:00
|
|
|
ErrorLog "{{ keystone_log_dir }}/keystone-apache-public-error.log"
|
2016-02-24 09:00:09 -05:00
|
|
|
LogFormat "%{X-Forwarded-For}i %l %u %t \"%r\" %>s %b %D \"%{Referer}i\" \"%{User-Agent}i\"" logformat
|
2016-03-26 14:12:58 -03:00
|
|
|
CustomLog "{{ keystone_log_dir }}/keystone-apache-public-access.log" logformat
|
2015-07-02 13:09:58 +00:00
|
|
|
</VirtualHost>
|
|
|
|
|
|
|
|
<VirtualHost *:{{ keystone_admin_port }}>
|
2015-11-18 07:22:17 +01:00
|
|
|
WSGIDaemonProcess keystone-admin processes=5 threads=1 user=keystone group=keystone display-name=%{GROUP} python-path={{ python_path }}
|
2015-07-02 13:09:58 +00:00
|
|
|
WSGIProcessGroup keystone-admin
|
|
|
|
WSGIScriptAlias / /var/www/cgi-bin/keystone/admin
|
|
|
|
WSGIApplicationGroup %{GLOBAL}
|
|
|
|
WSGIPassAuthorization On
|
|
|
|
<IfVersion >= 2.4>
|
|
|
|
ErrorLogFormat "%{cu}t %M"
|
|
|
|
</IfVersion>
|
2016-03-26 14:12:58 -03:00
|
|
|
ErrorLog "{{ keystone_log_dir }}/keystone-apache-admin-error.log"
|
2016-02-24 09:00:09 -05:00
|
|
|
LogFormat "%{X-Forwarded-For}i %l %u %t \"%r\" %>s %b %D \"%{Referer}i\" \"%{User-Agent}i\"" logformat
|
2016-03-26 14:12:58 -03:00
|
|
|
CustomLog "{{ keystone_log_dir }}/keystone-apache-admin-access.log" logformat
|
2015-07-02 13:09:58 +00:00
|
|
|
</VirtualHost>
|