Use backend IP address from variable
This commit is contained in:
parent
0d72316392
commit
60a35821f2
3 changed files with 5 additions and 5 deletions
|
@ -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
|
||||
|
|
|
@ -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",
|
||||
],
|
||||
)
|
|
@ -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"
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue