message-tagging-service: add config for fedmsg relay
Add relay_inbound and relay_outbound to config in order to send message to fedmsg. But, yeah, MTS should migrate to fedora-messaging eventually. Signed-off-by: Chenxiong Qi <cqi@redhat.com>
This commit is contained in:
parent
07278500e4
commit
9317dc2149
1 changed files with 13 additions and 13 deletions
|
@ -20,7 +20,8 @@ data:
|
||||||
}
|
}
|
||||||
build_state = 'ready'
|
build_state = 'ready'
|
||||||
|
|
||||||
{% if env == 'staging' %}
|
{% if env == 'staging' %}
|
||||||
|
|
||||||
dry_run = False
|
dry_run = False
|
||||||
# Running in staging, a rule file inside my perosnal repo is used in order to test conveniently.
|
# Running in staging, a rule file inside my perosnal repo is used in order to test conveniently.
|
||||||
rules_file_url = 'https://pagure.io/mts-rules/raw/master/f/rules.yaml'
|
rules_file_url = 'https://pagure.io/mts-rules/raw/master/f/rules.yaml'
|
||||||
|
@ -29,7 +30,9 @@ data:
|
||||||
consumer_topics = [
|
consumer_topics = [
|
||||||
'org.fedoraproject.stg.mbs.module.state.change',
|
'org.fedoraproject.stg.mbs.module.state.change',
|
||||||
]
|
]
|
||||||
{% else %}
|
|
||||||
|
{% else %}
|
||||||
|
|
||||||
dry_run = False
|
dry_run = False
|
||||||
rules_file_url = ('https://infrastructure.fedoraproject.org/cgit/ansible.git/tree/'
|
rules_file_url = ('https://infrastructure.fedoraproject.org/cgit/ansible.git/tree/'
|
||||||
'roles/openshift-apps/message-tagging-service/files/mts-rules.yml')
|
'roles/openshift-apps/message-tagging-service/files/mts-rules.yml')
|
||||||
|
@ -38,7 +41,8 @@ data:
|
||||||
consumer_topics = [
|
consumer_topics = [
|
||||||
'org.fedoraproject.prod.mbs.module.state.change',
|
'org.fedoraproject.prod.mbs.module.state.change',
|
||||||
]
|
]
|
||||||
{% endif %}
|
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
---
|
---
|
||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
|
@ -54,22 +58,18 @@ data:
|
||||||
'mts-consumer': True,
|
'mts-consumer': True,
|
||||||
'validate_signatures': False,
|
'validate_signatures': False,
|
||||||
'active': True,
|
'active': True,
|
||||||
|
'environment': {% if env == 'staging' %}'stg'{% else %}'prod'{% endif %},
|
||||||
{% if env == 'staging' %}
|
|
||||||
'environment': 'stg',
|
|
||||||
'endpoints': {
|
'endpoints': {
|
||||||
'fedora-infrastructure': [
|
'fedora-infrastructure': [
|
||||||
|
{% if env == 'staging' %}
|
||||||
'tcp://stg.fedoraproject.org:9940',
|
'tcp://stg.fedoraproject.org:9940',
|
||||||
],
|
{% else %}
|
||||||
},
|
|
||||||
{% else %}
|
|
||||||
'environment': 'prod',
|
|
||||||
'endpoints': {
|
|
||||||
'fedora-infrastructure': [
|
|
||||||
'tcp://hub.fedoraproject.org:9940',
|
'tcp://hub.fedoraproject.org:9940',
|
||||||
|
{% endif %}
|
||||||
],
|
],
|
||||||
|
'relay_outbound': ["tcp://127.0.0.1:4001"],
|
||||||
},
|
},
|
||||||
{% endif %}
|
'relay_inbound': ["tcp://127.0.0.1:2003"],
|
||||||
}
|
}
|
||||||
logging.py: |-
|
logging.py: |-
|
||||||
config = dict(logging={
|
config = dict(logging={
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue