summaryrefslogtreecommitdiffstats
path: root/roles/fedmsg/base/templates/endpoints-bugzilla2fedmsg.py.j2
diff options
context:
space:
mode:
authorRalph Bean <rbean@redhat.com>2014-06-23 20:22:01 +0000
committerRalph Bean <rbean@redhat.com>2014-06-23 20:22:09 +0000
commite4c35eb49477e845030fd435c87261bec35c950e (patch)
tree70ef6e9e8100d1d06cc19ce62ef000c4a72997ed /roles/fedmsg/base/templates/endpoints-bugzilla2fedmsg.py.j2
parent7bbe3e048c79f1c227198dcab6c8b7ef9eaa5c76 (diff)
downloadansible-e4c35eb49477e845030fd435c87261bec35c950e.tar.gz
ansible-e4c35eb49477e845030fd435c87261bec35c950e.tar.xz
ansible-e4c35eb49477e845030fd435c87261bec35c950e.zip
Add generic fedmsg config for bugzilla2fedmsg.
Diffstat (limited to 'roles/fedmsg/base/templates/endpoints-bugzilla2fedmsg.py.j2')
-rw-r--r--roles/fedmsg/base/templates/endpoints-bugzilla2fedmsg.py.j213
1 files changed, 13 insertions, 0 deletions
diff --git a/roles/fedmsg/base/templates/endpoints-bugzilla2fedmsg.py.j2 b/roles/fedmsg/base/templates/endpoints-bugzilla2fedmsg.py.j2
new file mode 100644
index 000000000..f73c56e0c
--- /dev/null
+++ b/roles/fedmsg/base/templates/endpoints-bugzilla2fedmsg.py.j2
@@ -0,0 +1,13 @@
+{% if env == 'staging' %}
+suffix = 'stg.phx2.fedoraproject.org'
+{% else %}
+suffix = 'phx2.fedoraproject.org'
+{% endif %}
+
+config = dict(
+ endpoints={
+ "bugzilla2fedmsg.bugzilla2fedmsg01": [
+ "tcp://bugzilla2fedmsg01.%s:3000" % suffix,
+ ],
+ },
+)