openstack-ansible-os_magnum/templates/magnum.conf.j2
Andy Smith e587d74d29 Update to use oslo.messaging service for RPC and Notify
This introduces oslo.messaging variables that define the RPC and
Notify transports for the OpenStack services. These parameters replace
the rabbitmq values and aure used to generate the messaging
transport_url for the service. The association of the messaging
backend server to the oslo.messaging services will then be transparent
to the magnum service.

This patch:
* Add oslo.messaging variables for RPC and Notify to defaults
* Add transport_url generation to conf template
* Add oslo.messaging to tests inventory
* Update tests
* Update examples
* Add release note

Change-Id: Ib44af3b1d153742975351a321d65c8812a994370
2018-07-20 11:53:00 +00:00

76 lines
2.9 KiB
Django/Jinja

[DEFAULT]
# Disable stderr logging
use_stderr = False
debug = {{ debug }}
host = {{ ansible_host }}
transport_url = {{ magnum_oslomsg_rpc_transport }}://{% for host in magnum_oslomsg_rpc_servers.split(',') %}{{ magnum_oslomsg_rpc_userid }}:{{ magnum_oslomsg_rpc_password }}@{{ host }}:{{ magnum_oslomsg_rpc_port }}{% if not loop.last %},{% else %}/{{ magnum_oslomsg_rpc_vhost }}{% if magnum_oslomsg_rpc_use_ssl | bool %}?ssl=1{% else %}?ssl=0{% endif %}{% endif %}{% endfor %}
[api]
host = {{ ansible_host }}
[barbican_client]
endpoint_type = internalURL
[cinder_client]
region_name = {{ magnum_cinder_service_region }}
endpoint_type = internalURL
[database]
connection = mysql+pymysql://{{ magnum_galera_user }}:{{ magnum_galera_password }}@{{ magnum_galera_address }}/{{ magnum_galera_database_name }}?charset=utf8{% if magnum_galera_use_ssl | bool %}&ssl_ca={{ magnum_galera_ssl_ca_cert }}{% endif %}
[glance_client]
endpoint_type = internalURL
[heat_client]
endpoint_type = internalURL
[keystone_authtoken]
auth_uri = {{ keystone_service_internalurl }}
auth_version = v3
insecure = {{ keystone_service_internaluri_insecure | bool }}
memcached_servers = {{ memcached_servers }}
token_cache_time = 300
identity_uri = {{ keystone_service_internaluri }}
auth_type = {{ magnum_keystone_auth_plugin }}
auth_url = {{ keystone_service_internaluri }}
project_domain_name = {{ magnum_service_project_domain_name }}
user_domain_name = {{ magnum_service_user_domain_name }}
project_name = {{ magnum_service_project_name }}
username = {{ magnum_service_user_name }}
password = {{ magnum_service_password }}
#TODO(chris_hultin)
#Remove once https://bugs.launchpad.net/magnum/+bug/1594888 is closed
admin_user = {{ magnum_service_user_name }}
admin_tenant_name = {{ magnum_service_project_name }}
admin_password = {{ magnum_service_password }}
[magnum_client]
endpoint_type = publicURL
[neutron_client]
endpoint_type = internalURL
[nova_client]
endpoint_type = internalURL
[oslo_messaging_notifications]
transport_url = {{ magnum_oslomsg_notify_transport }}://{% for host in magnum_oslomsg_notify_servers.split(',') %}{{ magnum_oslomsg_notify_userid }}:{{ magnum_oslomsg_notify_password }}@{{ host }}:{{ magnum_oslomsg_notify_port }}{% if not loop.last %},{% else %}/{{ magnum_oslomsg_notify_vhost }}{% if magnum_oslomsg_notify_use_ssl | bool %}?ssl=1{% else %}?ssl=0{% endif %}{% endif %}{% endfor %}
[oslo_messaging_rabbit]
ssl = {{ magnum_oslomsg_rpc_use_ssl }}
rabbit_notification_exchange = magnum
rabbit_notification_topic = notification
[profiler]
enabled = false
[trust]
trustee_domain_admin_password = {{ magnum_trustee_password }}
trustee_domain_admin_name = {{ magnum_trustee_domain_admin_name }}
trustee_domain_name = {{ magnum_trustee_domain_name }}
cluster_user_trust = {{ magnum_cluster_user_trust }}
trustee_keystone_interface= public
[certificates]
cert_manager_type = {{ magnum_cert_manager_type }}