koschei: split stg and prod credentials

Signed-off-by: Kevin Fenzi <kevin@scrye.com>
This commit is contained in:
Kevin Fenzi 2022-09-19 15:12:10 -07:00
parent dda41ab764
commit cf18a198f5
3 changed files with 12 additions and 0 deletions

View file

@ -6,7 +6,11 @@
config = {
"database_config": {
"username": "koscheiadmin",
{% if env == 'staging' %}
"password": "{{ koscheiadmin_db_password }}",
{% else %}
"password": "{{ koscheiadmin_stg_db_password }}",
{% endif %}
},
}

View file

@ -7,7 +7,11 @@ config = {
"database_config": {
"host": "{{ koschei_pgsql_hostname }}",
"username": "koscheiuser",
{% if env == 'staging' %}
"password": "{{ koscheiuser_stg_db_password }}",
{% else %}
"password": "{{ koscheiuser_db_password }}",
{% endif %}
"database": "koschei"
},
"koji_config": {

View file

@ -6,7 +6,11 @@ config = {
"database_config": {
"host": "{{ koschei_pgsql_hostname }}",
"username": "koscheiuser",
{% if env == 'staging' %}
"password": "{{ koscheiuser_stg_db_password }}",
{% else %}
"password": "{{ koscheiuser_db_password }}",
{% endif %}
"database": "koschei"
},
"koji_config": {