Move waiverdb configmap to a template to conditionalize stg vs not

Signed-off-by: Ricky Elrod <codeblock@fedoraproject.org>
This commit is contained in:
Rick Elrod 2017-08-23 19:45:26 +00:00
parent 5f6624fe82
commit 6f6a2dbfe9
2 changed files with 5 additions and 1 deletions

View file

@ -18,7 +18,7 @@
# , template: client_secrets.json
# }
- { role: openshift/object, app: waiverdb, file: imagestream.yml }
- { role: openshift/object, app: waiverdb, file: configmap.yml }
- { role: openshift/object, app: waiverdb, template: configmap.yml }
- { role: openshift/object, app: waiverdb, file: service.yml }
- { role: openshift/object, app: waiverdb, file: route.yml }
- { role: openshift/object, app: waiverdb, file: deploymentconfig.yml }

View file

@ -6,7 +6,11 @@ metadata:
app: waiverdb
data:
settings.py: |-
{% if env == 'staging' %}
DATABASE_URI = 'postgresql+psycopg2://waiverdb@db01.stg.phx2.fedoraproject.org:5432/waiverdb'
{% else %}
DATABASE_URI = 'postgresql+psycopg2://waiverdb@db01.phx2.fedoraproject.org:5432/waiverdb'
{% end %}
AUTH_METHOD = 'OIDC'
OIDC_CLIENT_SECRETS = '/etc/secret/client_secrets.json'
PORT = 8080