diff --git a/roles/fedmsg/base/tasks/main.yml b/roles/fedmsg/base/tasks/main.yml index cf31a70056..b938b32c17 100644 --- a/roles/fedmsg/base/tasks/main.yml +++ b/roles/fedmsg/base/tasks/main.yml @@ -51,6 +51,7 @@ - ssl.py - endpoints.py - endpoints-anitya.py + - endpoints-pagure.py - endpoints-fedocal.py - endpoints-elections.py - endpoints-fedbadges.py diff --git a/roles/fedmsg/base/templates/endpoints-pagure.py.j2 b/roles/fedmsg/base/templates/endpoints-pagure.py.j2 new file mode 100644 index 0000000000..1c25838733 --- /dev/null +++ b/roles/fedmsg/base/templates/endpoints-pagure.py.j2 @@ -0,0 +1,13 @@ +# This tells our nodes to also pull messages from pagure. +# Among those nodes is our public gateway which means that it will forward them +# back out to the public on "our bus". + +config = dict( + {% if env != 'staging' %} + endpoints={ + "pagure-public-relay": [ + "tcp://pagure01.fedoraproject.org:9940", + ], + }, + {% endif %} +)