From 4f63e6e74fb21cae1afc379b34283059a28a595e Mon Sep 17 00:00:00 2001 From: Pierre-Yves Chibon Date: Thu, 4 Jun 2020 14:52:45 +0200 Subject: [PATCH] waiverdb: use the iad2 db server when running in iad2 Signed-off-by: Pierre-Yves Chibon --- roles/openshift-apps/waiverdb/templates/settings.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/roles/openshift-apps/waiverdb/templates/settings.py b/roles/openshift-apps/waiverdb/templates/settings.py index 89d5019058..d06933bf5e 100644 --- a/roles/openshift-apps/waiverdb/templates/settings.py +++ b/roles/openshift-apps/waiverdb/templates/settings.py @@ -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 %}