c92b99d3f4
We haven't payed attention to the trove for a while and we need to align configuration with current state of the service. trove-conductor and trove-taskmanager configs are not loaded by trove services anymore (at least by default), so we merge all options into trove.conf Also defaults and deprecated options are dropped from the config. We implement bunch of new variables to cover missed logic and some usecases. Depends-On: https://review.opendev.org/c/openstack/openstack-ansible/+/784565 Depends-On: https://review.opendev.org/c/openstack/openstack-ansible/+/784113 Change-Id: I2ba758de38ed3fee10fe1485aa25621eddbf9046
46 lines
2.0 KiB
Django/Jinja
46 lines
2.0 KiB
Django/Jinja
# {{ ansible_managed }}
|
|
[DEFAULT]
|
|
control_exchange = {{ trove_control_exchange }}
|
|
transport_url = {{ trove_oslomsg_rpc_transport }}://{% for host in trove_guest_oslomsg_rpc_servers.split(',') %}{{ trove_oslomsg_rpc_userid }}:{{ trove_oslomsg_rpc_password }}@{{ host }}:{{ trove_oslomsg_rpc_port }}{% if not loop.last %},{% else %}/{{ trove_oslomsg_rpc_vhost }}{% endif %}{% endfor %}
|
|
|
|
{% if trove_swift_enabled is defined %}
|
|
swift_url = {{ trove_guest_swift_url }}
|
|
# Service type to use when searching catalog.
|
|
swift_service_type = object-store
|
|
|
|
# For storage to Swift, use the following as defaults:
|
|
storage_strategy = swift
|
|
|
|
# Default config options for storing backups to swift
|
|
backup_swift_container = database_backups
|
|
{% endif %}
|
|
|
|
# Show debugging output in logs (sets DEBUG log level output)
|
|
debug = {{ debug }}
|
|
|
|
[service_credentials]
|
|
auth_url = {{ trove_guest_auth_url }}
|
|
username = {{ trove_service_user_name }}
|
|
password = {{ trove_service_password }}
|
|
project_name = {{ trove_service_project_name }}
|
|
region_name = {{ trove_service_region }}
|
|
project_domain_name = {{ trove_service_project_domain_name }}
|
|
user_domain_name = {{ trove_service_user_domain_name }}
|
|
|
|
[oslo_messaging_rabbit]
|
|
# Connect over SSL for RabbitMQ. (boolean value)
|
|
# Deprecated group/name - [DEFAULT]/rabbit_use_ssl
|
|
ssl = {{ trove_guest_oslomsg_rpc_use_ssl }}
|
|
|
|
[oslo_messaging_notifications]
|
|
{% set notification_topics = [] %}
|
|
{% if trove_ceilometer_enabled %}
|
|
{% set _ = notification_topics.append('notifications') %}
|
|
{% endif %}
|
|
{% if trove_designate_enabled %}
|
|
{% set _ = notification_topics.append(trove_notifications_designate) %}
|
|
{% endif %}
|
|
topics = {{ notification_topics | join(',') }}
|
|
driver = {{ (notification_topics | length > 0) | ternary('messagingv2', 'noop') }}
|
|
transport_url = {{ trove_oslomsg_notify_transport }}://{% for host in trove_guest_oslomsg_notify_servers.split(',') %}{{ trove_oslomsg_notify_userid }}:{{ trove_oslomsg_notify_password }}@{{ host }}:{{ trove_oslomsg_notify_port }}{% if not loop.last %},{% else %}/{{ trove_oslomsg_notify_vhost }}{% endif %}{% endfor %}
|