Add variable to globally control notifications enablement
In order to be able to globally enable notification reporting for all services, without an need to have ceilometer deployed or bunch of overrides for each service, we add `oslomsg_notify_enabled` variable that aims to control behaviour of enabled notifications. Presence of ceilometer is still respected by default and being referenced. Potential usecase are various billing panels that do rely on notifications but do not require presence of Ceilometer. Depends-On: https://review.opendev.org/c/openstack/openstack-ansible-plugins/+/914144 Change-Id: I60746cedeec323bcede3bb5aa4968f0388e262bb
This commit is contained in:
parent
0730cbaef0
commit
f8c9874420
@ -62,6 +62,7 @@ cloudkitty_oslomsg_rabbit_quorum_delivery_limit: "{{ oslomsg_rabbit_quorum_deliv
|
||||
cloudkitty_oslomsg_rabbit_quorum_max_memory_bytes: "{{ oslomsg_rabbit_quorum_max_memory_bytes | default(0) }}"
|
||||
|
||||
# Notify
|
||||
cloudkitty_oslomsg_notify_configure: "{{ oslomsg_notify_configure | default(False) }}"
|
||||
cloudkitty_oslomsg_notify_host_group: "{{ oslomsg_notify_host_group | default('rabbitmq_all') }}"
|
||||
cloudkitty_oslomsg_notify_setup_host: >-
|
||||
{{ (cloudkitty_oslomsg_notify_host_group in groups) | ternary(groups[cloudkitty_oslomsg_notify_host_group][0], 'localhost') }}
|
||||
|
@ -87,6 +87,7 @@
|
||||
_oslomsg_notify_vhost: "{{ cloudkitty_oslomsg_notify_vhost }}"
|
||||
_oslomsg_notify_transport: "{{ cloudkitty_oslomsg_notify_transport }}"
|
||||
_oslomsg_notify_policies: "{{ cloudkitty_oslomsg_notify_policies }}"
|
||||
_oslomsg_notify_configure: "{{ cloudkitty_oslomsg_notify_configure }}"
|
||||
tags:
|
||||
- always
|
||||
|
||||
|
@ -62,6 +62,7 @@ rabbit_quorum_delivery_limit = {{ cloudkitty_oslomsg_rabbit_quorum_delivery_limi
|
||||
rabbit_quorum_max_memory_bytes = {{ cloudkitty_oslomsg_rabbit_quorum_max_memory_bytes }}
|
||||
|
||||
[oslo_messaging_notifications]
|
||||
driver = {{ (cloudkitty_oslomsg_notify_configure | bool) | ternary('messagingv2', 'noop') }}
|
||||
transport_url = {{ cloudkitty_oslomsg_notify_transport }}://{% for host in cloudkitty_oslomsg_notify_servers.split(',') %}{{ cloudkitty_oslomsg_notify_userid }}:{{ cloudkitty_oslomsg_notify_password }}@{{ host }}:{{ cloudkitty_oslomsg_notify_port }}{% if not loop.last %},{% else %}/{{ _cloudkitty_oslomsg_notify_vhost_conf }}{% if cloudkitty_oslomsg_notify_use_ssl | bool %}?ssl=1&ssl_version={{ cloudkitty_oslomsg_notify_ssl_version }}&ssl_ca_file={{ cloudkitty_oslomsg_notify_ssl_ca_file }}{% else %}?ssl=0{% endif %}{% endif %}{% endfor %}
|
||||
|
||||
[output]
|
||||
|
Loading…
Reference in New Issue
Block a user