openqa/fixes: try a custom relay.py for prod...

seems like we need the internal inbound relay but the public
outbound relay? I don't even know...but we definitely can't
connect to busgateway01.phx2.fedoraproject.org:3999
This commit is contained in:
Adam Williamson 2016-03-10 17:30:09 -08:00
parent 52c2bb1cc0
commit d7c79c5cb0
2 changed files with 23 additions and 0 deletions

View file

@ -0,0 +1,19 @@
config = dict(
endpoints={
# This is the output side of the relay to which all other
# services can listen.
"relay_outbound": [
"tcp://127.0.0.1:4001",
],
},
relay_inbound=[
# Stuff from the cloud has to go through our external proxy first..
#"tcp://hub.fedoraproject.org:9941",
# ...and normally, we'd like them to go through round-robin, but we're
# not getting messages in from proxies across the vpn. So, only use
# proxy01 for now.
"tcp://209.132.181.16:9941",
],
)

View file

@ -8,6 +8,10 @@
command: cp /etc/fedmsg.d/relay.py.rpmnew /etc/fedmsg.d/relay.py
when: fedmsg_env == "stg"
- name: use custom relay.py (external outbound, internal inbound)
copy: src=relay.py dest=/etc/fedmsg.d/relay.py owner=root group=root mode=0644
when: fedmsg_env != "stg"
- name: restart fedmsg services
service: name={{ item }} state=restarted
with_items: