mirror of
https://pagure.io/fedora-infra/ansible.git
synced 2026-05-16 13:56:03 +08:00
(fedmsg) allow hosts to override their cert_prefix globally.
This commit is contained in:
@@ -15,6 +15,7 @@ nrpe_procs_crit: 1000
|
||||
# Since retrace is on the qa network, it needs to actively connect to our
|
||||
# inbound relay.
|
||||
fedmsg_active: True
|
||||
fedmsg_cert_prefix: faf
|
||||
|
||||
# Declare fedmsg certs that should be put in /etc/pki/fedmsg/
|
||||
# These are consumed by a task in roles/fedmsg/base/main.yml
|
||||
|
||||
@@ -14,6 +14,16 @@ config = dict(
|
||||
# on.
|
||||
active={{fedmsg_active}},
|
||||
|
||||
{% if fedmsg_cert_prefix is defined %}
|
||||
# Most fedmsg enabled services dynamically guess their cert_prefix by
|
||||
# looking at the namespace of the python code that they're running in. For
|
||||
# instance, bodhi's code is in the 'bodhi' python module, so fedmsg grabs
|
||||
# that and uses it for its cert prefix. Some code, however, runs in an
|
||||
# oddly-namespaced module, and so we allow the option here to override that
|
||||
# at the host level.
|
||||
cert_prefix='{{fedmsg_cert_prefix}}',
|
||||
{% endif %}
|
||||
|
||||
{% if not ansible_hostname.startswith('busgateway') %}
|
||||
# These options provide a place for hub processes to write out their last
|
||||
# processed message. This let's them read it in at startup and figure out
|
||||
|
||||
Reference in New Issue
Block a user