Add service policies defenition
In order to allow definition of policies per service, we need to add variables to service roles, that will be passed to openstack.osa.mq_setup. Currently this can be handled by leveraging group_vars and overriding `oslomsg_rpc_policies` as a whole, but it's not obvious and can be non-trivial for some groups which are co-locating multiple services or in case of metal deployments. Change-Id: I99cac10abd52d6a3a427615d107c094fd7772caf
This commit is contained in:
parent
151043d7f0
commit
5fd3b32e1e
|
@ -110,6 +110,7 @@ designate_oslomsg_rpc_vhost:
|
|||
state: "{{ designate_oslomsg_rabbit_quorum_queues | ternary('present', 'absent') }}"
|
||||
designate_oslomsg_rpc_ssl_version: "{{ oslomsg_rpc_ssl_version | default('TLSv1_2') }}"
|
||||
designate_oslomsg_rpc_ssl_ca_file: "{{ oslomsg_rpc_ssl_ca_file | default('') }}"
|
||||
designate_oslomsg_rpc_policies: []
|
||||
|
||||
# Notify
|
||||
designate_oslomsg_notify_host_group: "{{ oslomsg_notify_host_group | default('rabbitmq_all') }}"
|
||||
|
@ -124,6 +125,7 @@ designate_oslomsg_notify_password: "{{ designate_oslomsg_rpc_password }}"
|
|||
designate_oslomsg_notify_vhost: "{{ designate_oslomsg_rpc_vhost }}"
|
||||
designate_oslomsg_notify_ssl_version: "{{ oslomsg_notify_ssl_version | default('TLSv1_2') }}"
|
||||
designate_oslomsg_notify_ssl_ca_file: "{{ oslomsg_notify_ssl_ca_file | default('') }}"
|
||||
designate_oslomsg_notify_policies: []
|
||||
|
||||
## RabbitMQ integration
|
||||
designate_oslomsg_rabbit_quorum_queues: "{{ oslomsg_rabbit_quorum_queues | default(True) }}"
|
||||
|
|
|
@ -80,12 +80,14 @@
|
|||
_oslomsg_rpc_password: "{{ designate_oslomsg_rpc_password }}"
|
||||
_oslomsg_rpc_vhost: "{{ designate_oslomsg_rpc_vhost }}"
|
||||
_oslomsg_rpc_transport: "{{ designate_oslomsg_rpc_transport }}"
|
||||
_oslomsg_rpc_policies: "{{ designate_oslomsg_rpc_policies }}"
|
||||
_oslomsg_notify_setup_host: "{{ designate_oslomsg_notify_setup_host }}"
|
||||
_oslomsg_notify_userid: "{{ designate_oslomsg_notify_userid }}"
|
||||
_oslomsg_notify_password: "{{ designate_oslomsg_notify_password }}"
|
||||
_oslomsg_notify_vhost: "{{ designate_oslomsg_notify_vhost }}"
|
||||
_oslomsg_notify_transport: "{{ designate_oslomsg_notify_transport }}"
|
||||
_oslomsg_configure_notify: "{{ designate_ceilometer_enabled | bool }}"
|
||||
_oslomsg_notify_policies: "{{ designate_oslomsg_notify_policies }}"
|
||||
tags:
|
||||
- always
|
||||
|
||||
|
|
Loading…
Reference in New Issue