Try dynamically generating some fedmsg config from group/host vars in staging.

This commit is contained in:
Ralph Bean 2015-06-12 16:27:31 +00:00
parent 7acd932025
commit 60dbdd00cf
15 changed files with 72 additions and 10 deletions

View file

@ -216,6 +216,17 @@ config = dict(
topic_prefix + "announce.announcement": [
"announce-lockbox01.phx2.fedoraproject.org",
],
{% if env == 'staging' %}
# ** policy dynamically generated from inventory vars
# See ansible/filter_plugins/fedmsg.py for this inversion filter.
{% for topic, certs in hostvars | invert_fedmsg_authz_policy %}
"{{topic}}": [
{% for cert in certs %}
"{{ cert }}",{% endfor %}
],
{% endfor %}
{% endif %}
},
)