afdd11b9a2
Useful api_interface_address variable has been define here: https://github.com/openstack/kolla-ansible/blob/master/ansible/group_vars/all.yml#L57 In order to simplify codebase we must use it as much as possible. Change-Id: I18fec19bf69e05a22a4142a9cd1165eccd022455
58 lines
2.0 KiB
Django/Jinja
58 lines
2.0 KiB
Django/Jinja
[DEFAULT]
|
|
debug = {{ sahara_logging_debug }}
|
|
log_dir = /var/log/kolla/sahara
|
|
port = {{ sahara_api_port }}
|
|
host = {{ api_interface_address }}
|
|
transport_url = rabbit://{% for host in groups['rabbitmq'] %}{{ rabbitmq_user }}:{{ rabbitmq_password }}@{{ hostvars[host]['ansible_' + hostvars[host]['api_interface']]['ipv4']['address'] }}:{{ rabbitmq_port }}{% if not loop.last %},{% endif %}{% endfor %}
|
|
|
|
use_neutron = True
|
|
api_workers = {{ openstack_service_workers }}
|
|
use_floating_ips = False
|
|
use_namespaces = True
|
|
use_rootwrap = True
|
|
|
|
[database]
|
|
connection = mysql+pymysql://{{ sahara_database_user }}:{{ sahara_database_password }}@{{ sahara_database_address }}/{{ sahara_database_name }}
|
|
|
|
[keystone_authtoken]
|
|
auth_uri = {{ internal_protocol }}://{{ kolla_internal_fqdn }}:{{ keystone_public_port }}
|
|
project_domain_name = default
|
|
project_name = service
|
|
user_domain_name = default
|
|
username = {{ sahara_keystone_user }}
|
|
password = {{ sahara_keystone_password }}
|
|
auth_url = {{ admin_protocol }}://{{ kolla_internal_fqdn }}:{{ keystone_admin_port }}
|
|
auth_type = password
|
|
admin_user = {{ sahara_keystone_user }}
|
|
admin_password = {{ sahara_keystone_password }}
|
|
admin_tenant_name = service
|
|
|
|
memcache_security_strategy = ENCRYPT
|
|
memcache_secret_key = {{ memcache_secret_key }}
|
|
{% if orchestration_engine == 'KUBERNETES' %}
|
|
memcache_servers = {{ memcached_servers }}
|
|
{% else %}
|
|
memcached_servers = {% for host in groups['memcached'] %}{{ hostvars[host]['ansible_' + hostvars[host]['api_interface']]['ipv4']['address'] }}:{{ memcached_port }}{% if not loop.last %},{% endif %}{% endfor %}
|
|
{% endif %}
|
|
|
|
[service_credentials]
|
|
auth_url = {{ internal_protocol }}://{{ kolla_internal_fqdn }}:{{ keystone_public_port }}
|
|
region_name = {{ openstack_region_name }}
|
|
password = {{ sahara_keystone_password }}
|
|
username = {{ sahara_keystone_user }}
|
|
project_name = service
|
|
project_domain_id = default
|
|
user_domain_id = default
|
|
auth_type = password
|
|
|
|
[oslo_messaging_notifications]
|
|
{% if enable_ceilometer | bool %}
|
|
driver = messagingv2
|
|
topics = 'notifications'
|
|
{% else %}
|
|
driver = noop
|
|
{% endif %}
|
|
|
|
[profiler]
|
|
enabled = False
|