Conditional check for persistent-cloud group members.

This commit is contained in:
Ralph Bean 2014-05-30 16:14:28 +00:00
parent 2c40e94fb1
commit 6c0308b707

View file

@ -24,6 +24,18 @@ config = dict(
# It is also used by the mediawiki php plugin which, due to the oddities of
# php, can't maintain a single passive-bind endpoint of it's own.
relay_inbound=[
{% if 'persistent-cloud' in group_names %}
# 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",
{% else %}
# Primarily, scripts from inside phx2 connect here.
# Furthermore, scripts from outside (coprs, secondary arch koji) connect
# here via haproxy.
@ -32,12 +44,6 @@ config = dict(
# Scripts from the vpn (people03) connect here
"tcp://busgateway01.vpn.fedoraproject.org:3998",
# ...but they have 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",
{% endif %}
],
)