Use backend IP address from variable

This commit is contained in:
Jakub Kadlčík 2017-04-11 15:07:47 +02:00 committed by Miroslav Suchý
parent 0d72316392
commit 60a35821f2
3 changed files with 5 additions and 5 deletions

View file

@ -8,7 +8,7 @@
- /etc/fedmsg.d/ssl.py
- name: install the MBS config
copy: src="fedmsg/mbs.py" dest=/etc/fedmsg.d/
template: src="fedmsg.d/mbs.py" dest=/etc/fedmsg.d/
- name: install fedmsg-relay
dnf: state=latest name=fedmsg-relay

View file

@ -7,7 +7,7 @@ config = dict(
# This is the output side of the relay to which all other
# services can listen.
"relay_outbound": [
"tcp://172.25.32.160:4001",
"tcp://{{ copr_backend_ips[0] }}:4001",
],
},
@ -18,6 +18,6 @@ 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=[
"tcp://172.25.32.160:2003",
"tcp://{{ copr_backend_ips[0] }}:2003",
],
)

View file

@ -70,8 +70,8 @@
insertafter:
line: "{{ item }}"
with_items:
- " config['endpoints']['relay_outbound'].append('tcp://172.25.32.160:4001')"
- " config['relay_inbound'].append('tcp://172.25.32.160:2003')"
- " config['endpoints']['relay_outbound'].append('tcp://{{ copr_backend_ips[0] }}:4001')"
- " config['relay_inbound'].append('tcp://{{ copr_backend_ips[0] }}:2003')"
when: env == "staging"