From 2a9721eb26c1d830e494cbe129b419445511a768 Mon Sep 17 00:00:00 2001 From: Dmitriy Rabotyagov Date: Fri, 10 May 2024 16:37:55 +0200 Subject: [PATCH] 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: I1258e2dc385d8d004091167835e9c14e314cbc2b --- defaults/main.yml | 1 + tasks/main.yml | 1 + 2 files changed, 2 insertions(+) diff --git a/defaults/main.yml b/defaults/main.yml index d01a820c..7454e8e1 100644 --- a/defaults/main.yml +++ b/defaults/main.yml @@ -189,6 +189,7 @@ swift_reselleradmin_role: ResellerAdmin ## Oslo Messaging # Notify +swift_oslomsg_notify_policies: [] swift_oslomsg_notify_host_group: "{{ oslomsg_notify_host_group | default('rabbitmq_all') }}" swift_oslomsg_notify_setup_host: "{{ (swift_oslomsg_notify_host_group in groups) | ternary(groups[swift_oslomsg_notify_host_group][0], 'localhost') }}" swift_oslomsg_notify_transport: "{{ oslomsg_notify_transport | default('rabbit') }}" diff --git a/tasks/main.yml b/tasks/main.yml index 5b7871ed..db8561c7 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -162,6 +162,7 @@ _oslomsg_notify_password: "{{ swift_oslomsg_notify_password }}" _oslomsg_notify_vhost: "{{ swift_oslomsg_notify_vhost }}" _oslomsg_notify_transport: "{{ swift_oslomsg_notify_transport }}" + _oslomsg_notify_policies: "{{ swift_oslomsg_notify_policies }}" tags: - always