summaryrefslogtreecommitdiffstats
path: root/roles/fedmsg/base/templates
diff options
context:
space:
mode:
authorRalph Bean <rbean@redhat.com>2015-09-28 18:50:29 +0000
committerRalph Bean <rbean@redhat.com>2015-09-28 18:50:29 +0000
commitf02d60f92758ef0acb062952f0c02c895cf61dc4 (patch)
treed0450d4359eb93f2194e8d931a504a2a1b207647 /roles/fedmsg/base/templates
parentcecaeec118b8b8377c792fbb6971624801d44693 (diff)
downloadansible-f02d60f92758ef0acb062952f0c02c895cf61dc4.tar.gz
ansible-f02d60f92758ef0acb062952f0c02c895cf61dc4.tar.xz
ansible-f02d60f92758ef0acb062952f0c02c895cf61dc4.zip
Add global fedmsg config for autocloud-backend nodes.
Diffstat (limited to 'roles/fedmsg/base/templates')
-rw-r--r--roles/fedmsg/base/templates/endpoints-autocloud.py.j218
1 files changed, 18 insertions, 0 deletions
diff --git a/roles/fedmsg/base/templates/endpoints-autocloud.py.j2 b/roles/fedmsg/base/templates/endpoints-autocloud.py.j2
new file mode 100644
index 000000000..e53e38dc7
--- /dev/null
+++ b/roles/fedmsg/base/templates/endpoints-autocloud.py.j2
@@ -0,0 +1,18 @@
+{% if env == 'staging' %}
+suffix = 'stg.phx2.fedoraproject.org'
+{% else %}
+suffix = 'phx2.fedoraproject.org'
+{% endif %}
+
+config = dict(
+ endpoints={
+ "autocloud.autocloud-backend01": [
+ "tcp://autocloud-backend01.%s:30%0.2i" % (suffix, i)
+ for i in range(4)
+ ],
+ "autocloud.autocloud-backend02": [
+ "tcp://autocloud-backend02.%s:30%0.2i" % (suffix, i)
+ for i in range(4)
+ ],
+ },
+)