Zodbot: create the right username in rabbitmq

Signed-off-by: Aurélien Bompard <aurelien@bompard.org>
This commit is contained in:
Aurélien Bompard 2021-09-16 10:10:36 +02:00
parent bb247b7421
commit 74057f6ae5
No known key found for this signature in database
GPG key ID: 31584CFEB9BF64AD
2 changed files with 9 additions and 3 deletions

View file

@ -32,9 +32,6 @@
- apache
- { role: fedmsg/base,
when: inventory_hostname.startswith('value01') }
# Set up for fedora-messaging
- { role: rabbit/user,
username: "value{{ env_suffix }}"}
- { role: fedmsg/irc,
when: inventory_hostname.startswith('value01') }
- supybot

View file

@ -86,6 +86,15 @@
- meetbot
- supybot
# Set up for fedora-messaging
- name: Create the RabbitMQ user
import_role:
name: rabbit/user
username: "{{ botname }}"
when:
- env == "staging"
- inventory_hostname.startswith('value02')
- name: Create /etc/pki/fedora-messaging (stg)
file:
dest: /etc/pki/fedora-messaging