check-compose: use appropriate fedmsg consumer
Don't use prod consumer on staging...
This commit is contained in:
parent
fff2dddf8f
commit
a4366ff9f5
3 changed files with 10 additions and 4 deletions
|
@ -1,3 +0,0 @@
|
|||
config = {
|
||||
'checkcomp_consumer.prod.enabled': True,
|
||||
}
|
|
@ -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:
|
||||
|
|
9
roles/check-compose/templates/checkcomp_consumer.py.j2
Normal file
9
roles/check-compose/templates/checkcomp_consumer.py.j2
Normal 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 %}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue