582e352144
Original commit added incorrect config section [heat_clients] which should actually be [clients_heat]. Also adds workaround for bug 1750395 which affects creation of server without specifying network (>= rocky). This is needed for amulet tests to pass. Change-Id: I8f1036bd8797a336d836a6b3f6fa9cb50f7a8fa8 Closes-Bug: #1770144
117 lines
3.3 KiB
Plaintext
117 lines
3.3 KiB
Plaintext
[DEFAULT]
|
|
use_syslog = {{ use_syslog }}
|
|
verbose = {{ verbose }}
|
|
debug = {{ debug }}
|
|
log_dir = /var/log/heat
|
|
# Icehouse expects 'instance_user=' to allow the image's default user
|
|
# Not including instance_user at all results in 'ec2-user' being used
|
|
instance_user={{ instance_user }}
|
|
instance_driver=heat.engine.nova
|
|
{% if plugin_dirs -%}
|
|
plugin_dirs = {{ plugin_dirs }}
|
|
{% else -%}
|
|
plugin_dirs = /usr/lib64/heat,/usr/lib/heat
|
|
{% endif -%}
|
|
environment_dir=/etc/heat/environment.d
|
|
deferred_auth_method=password
|
|
host=heat
|
|
auth_encryption_key={{ encryption_key }}
|
|
num_engine_workers = {{ workers }}
|
|
{% if sections and 'DEFAULT' in sections -%}
|
|
{% for key, value in sections['DEFAULT'] -%}
|
|
{{ key }} = {{ value }}
|
|
{% endfor -%}
|
|
{% endif %}
|
|
|
|
{% if user_config_flags -%}
|
|
{% for key, value in user_config_flags.items() -%}
|
|
{{ key }} = {{ value }}
|
|
{% endfor -%}
|
|
{% endif -%}
|
|
|
|
{% if database_host -%}
|
|
# < Icehouse db config
|
|
sql_connection = {{ database_type }}://{{ database_user }}:{{ database_password }}@{{ database_host }}/{{ database }}{% if database_ssl_ca %}?ssl_ca={{ database_ssl_ca }}{% if database_ssl_cert %}&ssl_cert={{ database_ssl_cert }}&ssl_key={{ database_ssl_key }}{% endif %}{% endif %}
|
|
{% endif %}
|
|
|
|
{% if rabbitmq_host or rabbitmq_hosts -%}
|
|
rabbit_userid = {{ rabbitmq_user }}
|
|
rabbit_virtual_host = {{ rabbitmq_virtual_host }}
|
|
rabbit_password = {{ rabbitmq_password }}
|
|
{% if rabbitmq_hosts -%}
|
|
rabbit_hosts = {{ rabbitmq_hosts }}
|
|
{% if rabbitmq_ha_queues -%}
|
|
rabbit_ha_queues = True
|
|
rabbit_durable_queues = False
|
|
{% endif -%}
|
|
{% else -%}
|
|
rabbit_host = {{ rabbitmq_host }}
|
|
{% endif -%}
|
|
{% if rabbit_ssl_port -%}
|
|
rabbit_use_ssl = True
|
|
rabbit_port = {{ rabbit_ssl_port }}
|
|
{% if rabbit_ssl_ca -%}
|
|
kombu_ssl_ca_certs = {{ rabbit_ssl_ca }}
|
|
{% endif -%}
|
|
{% endif -%}
|
|
{% endif %}
|
|
|
|
{% if auth_host -%}
|
|
[keystone_authtoken]
|
|
auth_uri = {{ service_protocol }}://{{ service_host }}:{{ service_port }}/v2.0
|
|
auth_host = {{ auth_host }}
|
|
auth_port = {{ auth_port }}
|
|
auth_protocol = {{ auth_protocol }}
|
|
admin_tenant_name = {{ admin_tenant_name }}
|
|
admin_user = {{ admin_user }}
|
|
admin_password = {{ admin_password }}
|
|
signing_dir = {{ signing_dir }}
|
|
{% endif %}
|
|
|
|
[ec2_authtoken]
|
|
auth_uri = {{service_protocol }}://{{ service_host }}:{{ service_port }}/v2.0
|
|
keystone_ec2_uri = {{service_protocol }}://{{ service_host }}:{{ service_port }}/v2.0/ec2tokens
|
|
|
|
{% if database_host -%}
|
|
[database]
|
|
connection = {{ database_type }}://{{ database_user }}:{{ database_password }}@{{ database_host }}/{{ database }}{% if database_ssl_ca %}?ssl_ca={{ database_ssl_ca }}{% if database_ssl_cert %}&ssl_cert={{ database_ssl_cert }}&ssl_key={{ database_ssl_key }}{% endif %}{% endif %}
|
|
{% endif -%}
|
|
|
|
[paste_deploy]
|
|
api_paste_config=/etc/heat/api-paste.ini
|
|
|
|
[heat_api]
|
|
{% if api_listen_port -%}
|
|
bind_port={{ api_listen_port }}
|
|
{% else -%}
|
|
bind_port=8004
|
|
{% endif %}
|
|
workers = {{ workers }}
|
|
|
|
[heat_api_cfn]
|
|
{% if api_cfn_listen_port -%}
|
|
bind_port={{ api_cfn_listen_port }}
|
|
{% else -%}
|
|
bind_port=8000
|
|
{% endif %}
|
|
workers = {{ workers }}
|
|
|
|
{% if use_internal_endpoints -%}
|
|
[clients]
|
|
endpoint_type = internalURL
|
|
|
|
[clients_heat]
|
|
# See LP 1770144
|
|
endpoint_type = publicURL
|
|
|
|
{%- endif %}
|
|
|
|
{% if sections -%}
|
|
{% for section in sections if section != 'DEFAULT' -%}
|
|
[{{ section }}]
|
|
{% for key, value in sections[section] -%}
|
|
{{ key }} = {{ value }}
|
|
{% endfor -%}
|
|
{% endfor -%}
|
|
{% endif %}
|