greenwave role: conditionalise fedmsg environment

This commit is contained in:
Matt Jia 2017-10-13 09:21:26 +10:00
parent fcc6f533e4
commit 193291fe4d
No known key found for this signature in database
GPG key ID: 496C2CDC1EF01F5D

View file

@ -68,8 +68,10 @@ data:
# XXX: change to dbm backend with persistent volume.
greenwave_cache={'backend': 'dogpile.cache.memory'},
{% if env == 'staging' %}
environment='stg',
greenwave_api_url='https://greenwave-web-greenwave.app.os.stg.fedoraproject.org/api/v1.0'
{% else %}
environment='prod',
greenwave_api_url='https://greenwave-web-greenwave.app.os.fedoraproject.org/api/v1.0'
{% endif %}
)