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 = {