waiverdb: use the iad2 db server when running in iad2

Signed-off-by: Pierre-Yves Chibon <pingou@pingoured.fr>
This commit is contained in:
Pierre-Yves Chibon 2020-06-04 14:52:45 +02:00
parent cc8d0d17aa
commit 4f63e6e74f

View file

@ -3,7 +3,11 @@ DATABASE_URI = 'postgresql+psycopg2://waiverdb@db01.stg.phx2.fedoraproject.org:5
RESULTSDB_API_URL = 'https://taskotron.stg.fedoraproject.org/resultsdb_api/api/v2.0'
CORS_URL = 'https://bodhi.stg.fedoraproject.org'
{% else %}
{% if datacenter == "iad2" %}
DATABASE_URI = 'postgresql+psycopg2://waiverdb@db01.iad2.fedoraproject.org:5432/waiverdb'
{% else %}
DATABASE_URI = 'postgresql+psycopg2://waiverdb@db01.phx2.fedoraproject.org:5432/waiverdb'
{% endif %}
RESULTSDB_API_URL = 'https://taskotron.fedoraproject.org/resultsdb_api/api/v2.0'
CORS_URL = 'https://bodhi.fedoraproject.org'
{% endif %}