check-compose: use appropriate fedmsg consumer

Don't use prod consumer on staging...
This commit is contained in:
Adam Williamson 2017-02-14 17:12:37 -08:00
parent fff2dddf8f
commit a4366ff9f5
3 changed files with 10 additions and 4 deletions

View file

@ -1,3 +0,0 @@
config = {
'checkcomp_consumer.prod.enabled': True,
}

View file

@ -78,7 +78,7 @@
- restart fedmsg-hub
- name: Enable fedmsg consumer
copy: src=checkcomp_consumer.py dest=/etc/fedmsg.d/checkcomp_consumer.py owner=root group=root mode=0644
template: src=checkcomp_consumer.py.j2 dest=/etc/fedmsg.d/checkcomp_consumer.py owner=root group=root mode=0644
notify:
- restart fedmsg-hub
tags:

View file

@ -0,0 +1,9 @@
config = {
{% if deployment_type is defined and deployment_type == 'prod' %}
'checkcomp_consumer.prod.enabled': True,
{% elif deployment_type is defined and deployment_type == 'stg' %}
'checkcomp_consumer.stg.enabled': True,
{% else %}
checkcomp_consumer.test.enabled': True,
{% endif %}
}