Add global fedmsg config for autocloud-backend nodes.

This commit is contained in:
Ralph Bean 2015-09-28 18:50:29 +00:00
parent cecaeec118
commit f02d60f927
4 changed files with 27 additions and 8 deletions

View file

@ -7,13 +7,13 @@ num_cpus: 4
# for systems that do not match the above - specify the same parameter in # for systems that do not match the above - specify the same parameter in
# the host_vars/$hostname file # 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 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 # These are consumed by a task in roles/fedmsg/base/main.yml
fedmsg_certs: fedmsg_certs:
- service: shell - service: shell

View file

@ -7,13 +7,13 @@ num_cpus: 4
# for systems that do not match the above - specify the same parameter in # for systems that do not match the above - specify the same parameter in
# the host_vars/$hostname file # 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 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 # These are consumed by a task in roles/fedmsg/base/main.yml
fedmsg_certs: fedmsg_certs:
- service: shell - service: shell

View file

@ -85,6 +85,7 @@
- endpoints-fedimg.py - endpoints-fedimg.py
- endpoints-bugzilla2fedmsg.py - endpoints-bugzilla2fedmsg.py
- endpoints-bodhi.py - endpoints-bodhi.py
- endpoints-autocloud.py
- relay.py - relay.py
- logging.py - logging.py
- base.py - base.py

View 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)
],
},
)