From aa0d5e17b8dd5ee0d88d3b820b5e5ebf3f87940f Mon Sep 17 00:00:00 2001 From: Ralph Bean Date: Mon, 1 Jun 2015 17:16:00 +0000 Subject: [PATCH] Loop the pagure fedmsg bus into the FI bus. --- roles/fedmsg/base/tasks/main.yml | 1 + roles/fedmsg/base/templates/endpoints-pagure.py.j2 | 13 +++++++++++++ 2 files changed, 14 insertions(+) create mode 100644 roles/fedmsg/base/templates/endpoints-pagure.py.j2 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 %} +)