Create the fedora-messaging user for src.fp.o

Signed-off-by: Pierre-Yves Chibon <pingou@pingoured.fr>
This commit is contained in:
Pierre-Yves Chibon 2019-03-04 15:05:35 +01:00
parent 3490c41c63
commit c3d64514c1

View file

@ -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