sent_topics can't be a list, it has to be a single regexp

Signed-off-by: Aurélien Bompard <aurelien@bompard.org>
This commit is contained in:
Aurélien Bompard 2022-07-07 09:09:07 +02:00
parent 60c63ef0d3
commit d083b291d3
No known key found for this signature in database
GPG key ID: 31584CFEB9BF64AD
48 changed files with 59 additions and 117 deletions

View file

@ -7,4 +7,4 @@ thresholds:
warning: 10000
critical: 100000
nagios_server: noc01.iad2.fedoraproject.org
sent_topics: []
sent_topics: null

View file

@ -43,12 +43,14 @@
- name: Prepare the topic permissions dict
set_fact:
topic_permissions: "{{ topic_permissions|default([]) + [{'vhost': vhost, 'read_priv': '.*', 'write_priv': item}] }}"
loop: "{{ sent_topics }}"
topic_permissions:
- vhost: vhost
read_priv: .*
write_priv: sent_topics
tags:
- fedora-messaging
- rabbitmq_cluster
when: env == "staging"
when: env == "staging" and sent_topics
- debug:
msg: "Topic permissions: {{ topic_permissions|default([]) }}"