diff --git a/tasks/main.yml b/tasks/main.yml index fd799298..67b5ab49 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -110,13 +110,11 @@ _oslomsg_rpc_password: "{{ keystone_oslomsg_rpc_password }}" _oslomsg_rpc_vhost: "{{ keystone_oslomsg_rpc_vhost }}" _oslomsg_rpc_transport: "{{ keystone_oslomsg_rpc_transport }}" - _oslomsg_configure_rpc: "{{ keystone_messaging_enabled | bool }}" _oslomsg_notify_setup_host: "{{ keystone_oslomsg_notify_setup_host }}" _oslomsg_notify_userid: "{{ keystone_oslomsg_notify_userid }}" _oslomsg_notify_password: "{{ keystone_oslomsg_notify_password }}" _oslomsg_notify_vhost: "{{ keystone_oslomsg_notify_vhost }}" _oslomsg_notify_transport: "{{ keystone_oslomsg_notify_transport }}" - _oslomsg_configure_notify: "{{ keystone_ceilometer_enabled | bool }}" tags: - common-mq - keystone-config diff --git a/templates/keystone.conf.j2 b/templates/keystone.conf.j2 index eec27194..7b6e5dad 100644 --- a/templates/keystone.conf.j2 +++ b/templates/keystone.conf.j2 @@ -17,18 +17,14 @@ secure_proxy_ssl_header = {{ keystone_secure_proxy_ssl_header }} {% endif %} ## Oslo.Messaging RPC -{% if keystone_messaging_enabled | bool %} transport_url = {{ keystone_oslomsg_rpc_transport }}://{% for host in keystone_oslomsg_rpc_servers.split(',') %}{{ keystone_oslomsg_rpc_userid }}:{{ keystone_oslomsg_rpc_password }}@{{ host }}:{{ keystone_oslomsg_rpc_port }}{% if not loop.last %},{% else %}/{{ keystone_oslomsg_rpc_vhost }}{% if keystone_oslomsg_rpc_use_ssl | bool %}?ssl=1{% else %}?ssl=0{% endif %}{% endif %}{% endfor %} [oslo_messaging_rabbit] ssl = {{ keystone_oslomsg_rpc_use_ssl }} -{% endif %} -{% if keystone_ceilometer_enabled %} [oslo_messaging_notifications] -driver = messagingv2 +driver = {% if keystone_ceilometer_enabled %}messagingv2{% else %}noop{% endif %} transport_url = {{ keystone_oslomsg_notify_transport }}://{% for host in keystone_oslomsg_notify_servers.split(',') %}{{ keystone_oslomsg_notify_userid }}:{{ keystone_oslomsg_notify_password }}@{{ host }}:{{ keystone_oslomsg_notify_port }}{% if not loop.last %},{% else %}/{{ keystone_oslomsg_notify_vhost }}{% if keystone_oslomsg_notify_use_ssl | bool %}?ssl=1{% else %}?ssl=0{% endif %}{% endif %}{% endfor %} -{% endif %} {% if keystone_cache_servers | length > 0 %} [cache]