From 66ed1f624228a58c73b63111da8a76aa78fd9a1e Mon Sep 17 00:00:00 2001 From: Ricky Elrod Date: Tue, 2 Sep 2014 22:34:51 +0000 Subject: [PATCH] Enable android fmn context (stg only) Signed-off-by: Ricky Elrod --- roles/notifs/backend/templates/fmn.consumer.py | 4 ++++ roles/notifs/frontend/templates/fmn.web.py | 6 +++++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/roles/notifs/backend/templates/fmn.consumer.py b/roles/notifs/backend/templates/fmn.consumer.py index 82b5b06cca..11a79d090c 100644 --- a/roles/notifs/backend/templates/fmn.consumer.py +++ b/roles/notifs/backend/templates/fmn.consumer.py @@ -64,7 +64,11 @@ config = { ## Backend stuff ## + {% if env == 'staging' %} + "fmn.backends": ["email", "irc", "android"], + {% else %} "fmn.backends": ["email", "irc"], # android is disabled. + {% endif %} # Email "fmn.email.mailserver": "bastion01.phx2.fedoraproject.org:25", diff --git a/roles/notifs/frontend/templates/fmn.web.py b/roles/notifs/frontend/templates/fmn.web.py index 1d8dbfc0b9..008f64fd8e 100644 --- a/roles/notifs/frontend/templates/fmn.web.py +++ b/roles/notifs/frontend/templates/fmn.web.py @@ -4,7 +4,11 @@ config = { # And this is for the datanommer database "datanommer.sqlalchemy.url": "postgresql://{{datanommerDBUser}}:{{datanommerDBPassword}}@db-datanommer/datanommer", - "fmn.backends": ["irc", "email"], # But "android" is disabled. + {% if env == 'staging' %} + "fmn.backends": ["email", "irc", "android"], + {% else %} + "fmn.backends": ["email", "irc"], # android is disabled. + {% endif %} "fmn.web.default_login": "fedora_login", }