From 447ea9c8ad87e059f16d249d61654c2df4ec99e8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Aur=C3=A9lien=20Bompard?= Date: Thu, 26 Jun 2025 09:20:35 +0200 Subject: [PATCH] RabbitMQ: create the /centos-odcs vhost before giving the nagios user access to it MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Aurélien Bompard --- roles/rabbitmq_cluster/tasks/main.yml | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/roles/rabbitmq_cluster/tasks/main.yml b/roles/rabbitmq_cluster/tasks/main.yml index 023825e84e..f39159649a 100644 --- a/roles/rabbitmq_cluster/tasks/main.yml +++ b/roles/rabbitmq_cluster/tasks/main.yml @@ -291,8 +291,15 @@ - rabbitmq_cluster - config +# VirtualHost /centos-odcs +- import_tasks: vhost-centos-odcs.yml + tags: + - rabbitmq_cluster + - config + # Users with the "monitoring" tag have read-only access vhosts, connections, # channels, node-level resource usage, and cluster stats. +# (this needs to be done after all vhost that the user has access to have been created) - name: Create the Nagios monitoring user in staging rabbitmq_user: user: nagios-monitoring @@ -538,9 +545,3 @@ tags: - rabbitmq_cluster - config - -# VirtualHost /centos-odcs -- import_tasks: vhost-centos-odcs.yml - tags: - - rabbitmq_cluster - - config