Merge "Keystone interface address and memcached override"
This commit is contained in:
commit
a4cd16eb60
@ -19,4 +19,14 @@ domain_config_dir = /etc/keystone/domains
|
|||||||
[cache]
|
[cache]
|
||||||
backend = oslo_cache.memcache_pool
|
backend = oslo_cache.memcache_pool
|
||||||
enabled = True
|
enabled = True
|
||||||
|
|
||||||
|
{# For Kolla-Ansible, generate the memcache servers based on the list of
|
||||||
|
memcached servers in the inventory and memcached_servers should be un-set.
|
||||||
|
For Kolla-Kubernetes, it is necessary to define the memcached_servers
|
||||||
|
variable in globals.yml to set it to the Kubernetes service for memcached. #}
|
||||||
|
|
||||||
|
{% if orchestration_engine == 'KUBERNETES' %}
|
||||||
|
memcache_servers = {{ memcached_servers }}
|
||||||
|
{% else %}
|
||||||
memcache_servers = {% for host in groups['memcached'] %}{{ hostvars[host]['ansible_' + hostvars[host]['api_interface']]['ipv4']['address'] }}:{{ memcached_port }}{% if not loop.last %},{% endif %}{% endfor %}
|
memcache_servers = {% for host in groups['memcached'] %}{{ hostvars[host]['ansible_' + hostvars[host]['api_interface']]['ipv4']['address'] }}:{{ memcached_port }}{% if not loop.last %},{% endif %}{% endfor %}
|
||||||
|
{%- endif %}
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
{% 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' %}
|
||||||
Listen {{ hostvars[inventory_hostname]['ansible_' + api_interface]['ipv4']['address'] }}:{{ keystone_public_port }}
|
Listen {{ api_interface_address }}:{{ keystone_public_port }}
|
||||||
Listen {{ hostvars[inventory_hostname]['ansible_' + api_interface]['ipv4']['address'] }}:{{ keystone_admin_port }}
|
Listen {{ api_interface_address }}:{{ keystone_admin_port }}
|
||||||
|
|
||||||
<VirtualHost *:{{ keystone_public_port }}>
|
<VirtualHost *:{{ keystone_public_port }}>
|
||||||
WSGIDaemonProcess keystone-public processes=5 threads=1 user=keystone group=keystone display-name=%{GROUP} python-path={{ python_path }}
|
WSGIDaemonProcess keystone-public processes=5 threads=1 user=keystone group=keystone display-name=%{GROUP} python-path={{ python_path }}
|
||||||
|
Loading…
Reference in New Issue
Block a user