Add global fedmsg config for autocloud-backend nodes.
This commit is contained in:
parent
cecaeec118
commit
f02d60f927
4 changed files with 27 additions and 8 deletions
|
@ -7,13 +7,13 @@ num_cpus: 4
|
|||
# for systems that do not match the above - specify the same parameter in
|
||||
# the host_vars/$hostname file
|
||||
|
||||
tcp_ports: [ 3000, 3001, 3002, 3003, 3004 ]
|
||||
tcp_ports: [
|
||||
# These four ports are for outbound fedmsg
|
||||
3000, 3001, 3002, 3003,
|
||||
]
|
||||
|
||||
fas_client_groups: sysadmin-noc,sysadmin-fedimg
|
||||
|
||||
# This can be removed later after we have set things up
|
||||
fedmsg_loglevel: DEBUG
|
||||
|
||||
# These are consumed by a task in roles/fedmsg/base/main.yml
|
||||
fedmsg_certs:
|
||||
- service: shell
|
||||
|
|
|
@ -7,13 +7,13 @@ num_cpus: 4
|
|||
# for systems that do not match the above - specify the same parameter in
|
||||
# the host_vars/$hostname file
|
||||
|
||||
tcp_ports: [ 3000, 3001, 3002, 3003, 3004 ]
|
||||
tcp_ports: [
|
||||
# These four ports are for outbound fedmsg
|
||||
3000, 3001, 3002, 3003,
|
||||
]
|
||||
|
||||
fas_client_groups: sysadmin-noc,sysadmin-fedimg
|
||||
|
||||
# This can be removed later after we have set things up
|
||||
fedmsg_loglevel: DEBUG
|
||||
|
||||
# These are consumed by a task in roles/fedmsg/base/main.yml
|
||||
fedmsg_certs:
|
||||
- service: shell
|
||||
|
|
|
@ -85,6 +85,7 @@
|
|||
- endpoints-fedimg.py
|
||||
- endpoints-bugzilla2fedmsg.py
|
||||
- endpoints-bodhi.py
|
||||
- endpoints-autocloud.py
|
||||
- relay.py
|
||||
- logging.py
|
||||
- base.py
|
||||
|
|
18
roles/fedmsg/base/templates/endpoints-autocloud.py.j2
Normal file
18
roles/fedmsg/base/templates/endpoints-autocloud.py.j2
Normal file
|
@ -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)
|
||||
],
|
||||
},
|
||||
)
|
Loading…
Add table
Add a link
Reference in a new issue