From f178023895b1956b3f80ed7a749cbc6baefc14d4 Mon Sep 17 00:00:00 2001 From: Kevin Fenzi Date: Mon, 23 May 2022 15:49:51 -0700 Subject: [PATCH] notifs-backend / staging: more fixes for staging Signed-off-by: Kevin Fenzi --- playbooks/groups/notifs-backend.yml | 1 + roles/notifs/backend/templates/fmn.consumer.py | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/playbooks/groups/notifs-backend.yml b/playbooks/groups/notifs-backend.yml index 47965b015f..e4e7d3f998 100644 --- a/playbooks/groups/notifs-backend.yml +++ b/playbooks/groups/notifs-backend.yml @@ -68,6 +68,7 @@ - notifs/backend - role: collectd/fedmsg-service process: fedmsg-hub + when: inventory_hostname.startswith('notifs-backend01.iad2') vars_files: - /srv/web/infra/ansible/vars/global.yml diff --git a/roles/notifs/backend/templates/fmn.consumer.py b/roles/notifs/backend/templates/fmn.consumer.py index 289971b3a5..248dbf709b 100644 --- a/roles/notifs/backend/templates/fmn.consumer.py +++ b/roles/notifs/backend/templates/fmn.consumer.py @@ -6,7 +6,11 @@ domain = "fedoraproject.org" ircnick = "fedora-notif" {% endif %} +{% if env == 'staging' %} +base = "https://apps.stg.%s/notifications/" % domain +{% else %} base = "https://apps.%s/notifications/" % domain +{% endif %} config = {