Move this to a template for dev and prod handling
This commit is contained in:
parent
276135ccca
commit
8214877003
2 changed files with 10 additions and 2 deletions
|
@ -52,7 +52,7 @@
|
||||||
- /etc/fedmsg.d/ssl.py
|
- /etc/fedmsg.d/ssl.py
|
||||||
|
|
||||||
- name: setup module_build_service
|
- name: setup module_build_service
|
||||||
copy: src=module_build_service.py dest=/etc/fedmsg.d/module_build_service.py mode=0644 user=root group=root
|
template: src=module_build_service.py dest=/etc/fedmsg.d/module_build_service.py mode=0644 user=root group=root
|
||||||
|
|
||||||
- name: Listen to copr-be-dev
|
- name: Listen to copr-be-dev
|
||||||
lineinfile:
|
lineinfile:
|
||||||
|
|
|
@ -13,7 +13,11 @@ config = {
|
||||||
"endpoints": {
|
"endpoints": {
|
||||||
"fedora-infrastructure": [
|
"fedora-infrastructure": [
|
||||||
# Just listen to staging for now, not to production (spam!)
|
# Just listen to staging for now, not to production (spam!)
|
||||||
|
{% if inventory_hostname.startswith('copr-fe.cloud') %}
|
||||||
"tcp://hub.fedoraproject.org:9940"
|
"tcp://hub.fedoraproject.org:9940"
|
||||||
|
{% else %}
|
||||||
|
#"tcp://stg.fedoraproject.org:9940"
|
||||||
|
{% endif %}
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
|
|
||||||
|
@ -43,6 +47,10 @@ if 'MODULE_BUILD_SERVICE_DEVELOPER_ENV' in os.environ and \
|
||||||
config['relay_inbound'] = ["tcp://fedmsg-relay:2003"]
|
config['relay_inbound'] = ["tcp://fedmsg-relay:2003"]
|
||||||
else:
|
else:
|
||||||
# These configuration values are reasonable for most other configurations.
|
# These configuration values are reasonable for most other configurations.
|
||||||
|
{% if inventory_hostname.startswith('copr-fe.cloud') %}
|
||||||
config['endpoints']['relay_outbound'] = ["tcp://127.0.0.1:4001"]
|
config['endpoints']['relay_outbound'] = ["tcp://127.0.0.1:4001"]
|
||||||
config['relay_inbound'] = ["tcp://127.0.0.1:2003"]
|
config['relay_inbound'] = ["tcp://127.0.0.1:2003"]
|
||||||
|
{% else %}
|
||||||
|
config['endpoints']['relay_outbound'].append('tcp://172.25.32.175:4001')
|
||||||
|
config['relay_inbound'].append('tcp://172.25.32.175:2003')
|
||||||
|
{% endif %}
|
Loading…
Add table
Add a link
Reference in a new issue