From c60c1fbaf8a1143f187a45bdf6e360dbfdb5e3e2 Mon Sep 17 00:00:00 2001 From: Kevin Fenzi Date: Thu, 7 Jan 2021 15:45:09 -0800 Subject: [PATCH] rabbitmq / centos-odcs: we need a centos-odcs user This was hidden away in the odcs playbook in fedora infra, so I missed that we didn't make it in the odcs role, which is where we copied the things for the centos odcs application. So, add it in there so it makes a centos-odcs user. Signed-off-by: Kevin Fenzi --- roles/rabbitmq_cluster/tasks/apps.yml | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/roles/rabbitmq_cluster/tasks/apps.yml b/roles/rabbitmq_cluster/tasks/apps.yml index 6169cd5aaf..dbb568c02f 100644 --- a/roles/rabbitmq_cluster/tasks/apps.yml +++ b/roles/rabbitmq_cluster/tasks/apps.yml @@ -232,4 +232,17 @@ state: present tags: - centos-odcs + +- name: Create the user in RabbitMQ + delegate_to: "{{ rabbitmq_server }}" + rabbitmq_user: + user: centos-odcs + vhost: "{{ vhost }}" + read_priv: "^$" # Publish only, no reading + write_priv: "amq\\.topic" + configure_priv: "^$" # No configuration permissions + state: present + tags: + - centos-odcs + # CENTOS ODCS END