Add fedmsg endpoints for the bodhi-backend.
This commit is contained in:
parent
3779ad3d5a
commit
8d33afa7fd
4 changed files with 38 additions and 0 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -84,6 +84,7 @@
|
|||
- endpoints-summershum.py
|
||||
- endpoints-fedimg.py
|
||||
- endpoints-bugzilla2fedmsg.py
|
||||
- endpoints-bodhi.py
|
||||
- relay.py
|
||||
- logging.py
|
||||
- base.py
|
||||
|
|
21
roles/fedmsg/base/templates/endpoints-bodhi.py.j2
Normal file
21
roles/fedmsg/base/templates/endpoints-bodhi.py.j2
Normal 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 %}
|
||||
}
|
||||
)
|
Loading…
Add table
Add a link
Reference in a new issue