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.

Depends-On: https://review.opendev.org/c/openstack/openstack-ansible/+/914188
Depends-On: https://review.opendev.org/c/openstack/openstack-ansible-os_gnocchi/+/918036
Change-Id: Ib53e0822e5d7f52f1081a54c27c9f6bdcd8561d5
This commit is contained in:
Dmitriy Rabotyagov 2024-05-02 13:46:52 +02:00 committed by Dmitriy Rabotyagov
parent c6b7df85a8
commit 9311b16c13
2 changed files with 4 additions and 0 deletions

View File

@ -87,6 +87,7 @@ aodh_oslomsg_rpc_servers: "{{ oslomsg_rpc_servers | default('127.0.0.1') }}"
aodh_oslomsg_rpc_port: "{{ oslomsg_rpc_port | default('5672') }}"
aodh_oslomsg_rpc_use_ssl: "{{ oslomsg_rpc_use_ssl | default(False) }}"
aodh_oslomsg_rpc_userid: aodh
aodh_oslomsg_rpc_policies: []
# vhost name depends on value of oslomsg_rabbit_quorum_queues. In case quorum queues
# are not used - vhost name will be prefixed with leading `/`.
aodh_oslomsg_rpc_vhost:
@ -109,6 +110,7 @@ aodh_oslomsg_notify_password: "{{ aodh_oslomsg_rpc_password }}"
aodh_oslomsg_notify_vhost: "{{ aodh_oslomsg_rpc_vhost }}"
aodh_oslomsg_notify_ssl_version: "{{ oslomsg_notify_ssl_version | default('TLSv1_2') }}"
aodh_oslomsg_notify_ssl_ca_file: "{{ oslomsg_notify_ssl_ca_file | default('') }}"
aodh_oslomsg_notify_policies: []
## RabbitMQ integration
aodh_oslomsg_rabbit_quorum_queues: "{{ oslomsg_rabbit_quorum_queues | default(True) }}"

View File

@ -88,11 +88,13 @@
_oslomsg_rpc_password: "{{ aodh_oslomsg_rpc_password }}"
_oslomsg_rpc_vhost: "{{ aodh_oslomsg_rpc_vhost }}"
_oslomsg_rpc_transport: "{{ aodh_oslomsg_rpc_transport }}"
_oslomsg_rpc_policies: "{{ aodh_oslomsg_rpc_policies }}"
_oslomsg_notify_setup_host: "{{ aodh_oslomsg_notify_setup_host }}"
_oslomsg_notify_userid: "{{ aodh_oslomsg_notify_userid }}"
_oslomsg_notify_password: "{{ aodh_oslomsg_notify_password }}"
_oslomsg_notify_vhost: "{{ aodh_oslomsg_notify_vhost }}"
_oslomsg_notify_transport: "{{ aodh_oslomsg_notify_transport }}"
_oslomsg_notify_policies: "{{ aodh_oslomsg_notify_policies }}"
tags:
- always