Add fedmsg endpoints for the bodhi-backend.

This commit is contained in:
Ralph Bean 2015-08-18 22:06:25 +00:00
parent 3779ad3d5a
commit 8d33afa7fd
4 changed files with 38 additions and 0 deletions

View file

@ -20,6 +20,14 @@ virt_install_command: virt-install -n {{ inventory_hostname }} -r {{ mem_size }}
--network=bridge=br0,model=virtio --network=bridge=br1,model=virtio
--autostart --noautoconsole
# These are for fedmsg publication from the bodhi backend.
# If you change these iptables rules, you also need to changes the endpoints
# list in roles/fedmsg/base/templates/endpoints-bodhi.py
tcp_ports: [
3000, 3001, 3002, 3003, 3004,
3005, 3006, 3007, 3008, 3009,
]
# With 16 cpus, theres a bunch more kernel threads
nrpe_procs_warn: 900
nrpe_procs_crit: 1000

View file

@ -19,6 +19,14 @@ virt_install_command: virt-install -n {{ inventory_hostname }} -r {{ mem_size }}
--network=bridge=br0,model=virtio --network=bridge=br1,model=virtio
--autostart --noautoconsole
# These are for fedmsg publication from the bodhi backend.
# If you change these iptables rules, you also need to changes the endpoints
# list in roles/fedmsg/base/templates/endpoints-bodhi.py
tcp_ports: [
3000, 3001, 3002, 3003, 3004,
3005, 3006, 3007, 3008, 3009,
]
# With 16 cpus, theres a bunch more kernel threads
nrpe_procs_warn: 900
nrpe_procs_crit: 1000

View file

@ -84,6 +84,7 @@
- endpoints-summershum.py
- endpoints-fedimg.py
- endpoints-bugzilla2fedmsg.py
- endpoints-bodhi.py
- relay.py
- logging.py
- base.py

View file

@ -0,0 +1,21 @@
{% if env == 'staging' %}
suffix = 'stg.phx2.fedoraproject.org'
{% else %}
suffix = 'phx2.fedoraproject.org'
{% endif %}
config = dict(
endpoints={
"bodhi.bodhi-backend01.%s" % suffix: [
"tcp://bodhi-backend01.%s:30%0.2i" % (suffix, i)
for i in range(10)
],
{% if env != 'staging' %}
"bodhi.bodhi-backend01.%s" % suffix: [
"tcp://bodhi-backend01.%s:30%0.2i" % (suffix, i)
for i in range(10)
],
{% endif %}
}
)