From c3d64514c14b1efbe7b5b1729dd378237611453c Mon Sep 17 00:00:00 2001 From: Pierre-Yves Chibon Date: Mon, 4 Mar 2019 15:05:35 +0100 Subject: [PATCH] Create the fedora-messaging user for src.fp.o Signed-off-by: Pierre-Yves Chibon --- playbooks/groups/pkgs.yml | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/playbooks/groups/pkgs.yml b/playbooks/groups/pkgs.yml index 70c833b73f..de43ef999d 100644 --- a/playbooks/groups/pkgs.yml +++ b/playbooks/groups/pkgs.yml @@ -66,6 +66,17 @@ handlers: - import_tasks: "{{ handlers_path }}/restart_services.yml" +# Set up for fedora-messaging +- name: Create the user in RabbitMQ + delegate_to: "rabbitmq01{{ env_suffix }}.phx2.fedoraproject.org" + rabbitmq_user: + user: "pagure{{ env_suffix }}" + vhost: "/pubsub" + read_priv: "^$" # Not sending any messages, no need for read + write_priv: "^amq\\.topic$" # Write to queues prefixed with their name and publish to the topic exchange + configure_priv: "^$" # No configuration permissions + state: present + - name: setup fedmsg on pkgs hosts: pkgs-stg:pkgs02.phx2.fedoraproject.org user: root