Planet: fix routing keys and add rabbit user

Signed-off-by: Pedro Moura <pmoura@redhat.com>
This commit is contained in:
Pedro Moura 2024-09-16 20:07:44 -03:00 committed by phsmoura
parent a00d7db58c
commit 117a014f1e
2 changed files with 6 additions and 2 deletions

View file

@ -99,3 +99,7 @@
secret_name: planet-fedora-messaging-key
key: planet-key.pem
privatefile: "rabbitmq/{{env}}/pki/private/planet{{env_suffix}}.key"
- role: rabbit/user
username: "planet{{ env_suffix }}"
sent_topics: ^org\.fedoraproject\.{{ env_short }}\.planet\..*

View file

@ -58,9 +58,9 @@ app_contacts_email = [
exchange = "amq.topic"
routing_keys = [
{% if env == "staging" %}
'stg.fedoraplanet.org.build'
'org.fedoraproject.stg.planet.build'
{% else %}
'fedoraplanet.org.build'
'org.fedoraproject.prod.planet.build'
{%- endif %}
]