Don't use a variable for the db hostnames and split prod vs stg

Signed-off-by: Pierre-Yves Chibon <pingou@pingoured.fr>
This commit is contained in:
Pierre-Yves Chibon 2019-01-23 13:09:58 +01:00
parent d948f9a516
commit d258f888a1

View file

@ -6,7 +6,11 @@ import os
SECRET_KEY='{{ elections_secret_key }}'
### url to the database server:
DB_URL='postgresql://{{ elections_db_user }}:{{ elections_db_pass }}@{{ elections_db_host }}/{{ elections_db_name }}'
{% if env == 'staging' %}
DB_URL='postgresql://{{ elections_db_user }}:{{ elections_db_pass }}@db01.stg.phx2.fedoraproject.org/{{ elections_db_name }}'
{% else %}
DB_URL='postgresql://{{ elections_db_user }}:{{ elections_db_pass }}@db01.phx2.fedoraproject.org/elections_db_name }}'
{% endif %}
## One ore more FAS group that will have admin rights over the whole
## application, including all elections past, present and future