From 7cba0da13f08a7cbc69d3ac04da3610dcca53364 Mon Sep 17 00:00:00 2001 From: Kevin Fenzi Date: Mon, 23 May 2022 15:39:11 -0700 Subject: [PATCH] notifs-backend / staging: try using the stg db in stg Signed-off-by: Kevin Fenzi --- roles/notifs/backend/templates/fmn.consumer.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/roles/notifs/backend/templates/fmn.consumer.py b/roles/notifs/backend/templates/fmn.consumer.py index 7e45e52cdd..289971b3a5 100644 --- a/roles/notifs/backend/templates/fmn.consumer.py +++ b/roles/notifs/backend/templates/fmn.consumer.py @@ -35,7 +35,11 @@ config = { # Consumer stuff "fmn.consumer.enabled": True, + {% if env == 'staging' %} + "fmn.sqlalchemy.uri": "postgresql://{{notifs_db_user}}:{{notifs_db_password}}@db01.stg.iad2.fedoraproject.org/notifications", + {% else %} "fmn.sqlalchemy.uri": "postgresql://{{notifs_db_user}}:{{notifs_db_password}}@db01.iad2.fedoraproject.org/notifications", + {% endif %} {% if env != 'staging' %} # Auto create accounts for new packagers.