Koschei: fix mixed staging/prod db passwords

This commit is contained in:
Mikolaj Izdebski 2023-02-13 08:58:12 +01:00
parent 34a70319ca
commit cbfa7d32e2
5 changed files with 16 additions and 18 deletions

View file

@ -5,12 +5,8 @@
config = { config = {
"database_config": { "database_config": {
"username": "koscheiadmin", "username": "{{ koschei_pgsql_admin_username }}",
{% if env == 'staging' %} "password": "{{ koschei_pgsql_admin_password }}",
"password": "{{ koscheiadmin_db_password }}",
{% else %}
"password": "{{ koscheiadmin_stg_db_password }}",
{% endif %}
}, },
} }

View file

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

View file

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

View file

@ -11,6 +11,11 @@ koschei_koji_web: koji.fedoraproject.org
koschei_oidc_provider: id.fedoraproject.org koschei_oidc_provider: id.fedoraproject.org
koschei_bugzilla: bugzilla.redhat.com koschei_bugzilla: bugzilla.redhat.com
koschei_pgsql_username: koscheiuser
koschei_pgsql_password: "{{ koscheiuser_db_password }}"
koschei_pgsql_admin_username: koscheiadmin
koschei_pgsql_admin_password: "{{ koscheiadmin_db_password }}"
koschei_oidc_client_secret: "{{ koschei_oidc_client_secret_prod }}" koschei_oidc_client_secret: "{{ koschei_oidc_client_secret_prod }}"
koschei_oidc_crypto_secret: "{{ koschei_oidc_crypto_secret_prod }}" koschei_oidc_crypto_secret: "{{ koschei_oidc_crypto_secret_prod }}"

View file

@ -11,6 +11,11 @@ koschei_koji_web: koji.stg.fedoraproject.org
koschei_oidc_provider: id.stg.fedoraproject.org koschei_oidc_provider: id.stg.fedoraproject.org
koschei_bugzilla: bugzilla5.redhat.com koschei_bugzilla: bugzilla5.redhat.com
koschei_pgsql_username: koscheiuser
koschei_pgsql_password: "{{ koscheiuser_stg_db_password }}"
koschei_pgsql_admin_username: koscheiadmin
koschei_pgsql_admin_password: "{{ koscheiadmin_stg_db_password }}"
koschei_oidc_client_secret: "{{ koschei_oidc_client_secret_stg }}" koschei_oidc_client_secret: "{{ koschei_oidc_client_secret_stg }}"
koschei_oidc_crypto_secret: "{{ koschei_oidc_crypto_secret_stg }}" koschei_oidc_crypto_secret: "{{ koschei_oidc_crypto_secret_stg }}"