diff --git a/config/settings/base.py b/config/settings/base.py index 0846b5f4271622b3c0a3b02ad6c13e5f71aaf8f9..6ea727fcf3e08122e68494459ab15e4b8d1125cd 100644 --- a/config/settings/base.py +++ b/config/settings/base.py @@ -135,7 +135,7 @@ LOGOUT_REDIRECT_URL = 'home' SEND_XMPP_ALERTS = False SEND_PHONE_ALERTS = False SEND_EMAIL_ALERTS = False -SEND_MATTERMOST_ALERTS = True +SEND_MATTERMOST_ALERTS = False # igwn-alert group settings. the default development group is 'lvalert-dev' # for the container deployments, the variable will be overwriten by the diff --git a/config/settings/container/playground.py b/config/settings/container/playground.py index 63646a45ac84f798aa67e376194025e6dbee28f1..8bd24f01b712a4a706ed7f998eb7829d62716c30 100644 --- a/config/settings/container/playground.py +++ b/config/settings/container/playground.py @@ -17,6 +17,9 @@ EMBB_MAIL_ADDRESS = 'gracedb@{fqdn}'.format(fqdn=SERVER_FQDN) #SEND_PHONE_ALERTS = False #SEND_EMAIL_ALERTS = False +# Enable Mattermost alerts +SEND_MATTERMOST_ALERTS = True + # Add testserver to ALLOWED_HOSTS ALLOWED_HOSTS += ['testserver'] diff --git a/config/settings/container/test.py b/config/settings/container/test.py index 0538b1db6427b62ab24f0bc7826cf55c8d051795..9a39aabdcdba473e280922b64f3d4607b5d2571f 100644 --- a/config/settings/container/test.py +++ b/config/settings/container/test.py @@ -51,6 +51,9 @@ INTERNAL_IPS = [ #SEND_PHONE_ALERTS = False #SEND_EMAIL_ALERTS = False +# Enable Mattermost alerts +SEND_MATTERMOST_ALERTS = True + # Set up Sentry for error logging sentry_dsn = get_from_env('DJANGO_SENTRY_DSN', fail_if_not_found=False) diff --git a/config/settings/vm/dev.py b/config/settings/vm/dev.py index 6edf9ffeceda23994d27d614a79a8dfac0b614db..10ff9f79a16df5db39cd1e4f910baa8e1b0ceee2 100644 --- a/config/settings/vm/dev.py +++ b/config/settings/vm/dev.py @@ -10,6 +10,7 @@ CONFIG_NAME = "DEV" # Debug settings DEBUG = True SEND_XMPP_ALERTS=True +SEND_MATTERMOST_ALERTS=True # Override EMBB email address # TP (8 Aug 2017): not sure why? diff --git a/config/settings/vm/playground.py b/config/settings/vm/playground.py index 644a9c76bbc52640c05dceade2b351fe07476a63..8daaeec5827f6e9714e75794ee97795254029d2f 100644 --- a/config/settings/vm/playground.py +++ b/config/settings/vm/playground.py @@ -16,6 +16,9 @@ EMBB_MAIL_ADDRESS = 'gracedb@{fqdn}'.format(fqdn=SERVER_FQDN) # Turn on XMPP alerts SEND_XMPP_ALERTS = True +# Turn on Mattermost alerts +SEND_MATTERMOST_ALERTS = True + # Enforce that phone and email alerts are off SEND_PHONE_ALERTS = False SEND_EMAIL_ALERTS = False diff --git a/config/settings/vm/production.py b/config/settings/vm/production.py index e98cc30ad3250c45c1aab07cb62a7dbc374a6111..9ba49c31b67feed76e926ce9dad94338559d7ae9 100644 --- a/config/settings/vm/production.py +++ b/config/settings/vm/production.py @@ -19,6 +19,7 @@ LVALERT_OVERSEER_INSTANCES = [ SEND_XMPP_ALERTS = True SEND_PHONE_ALERTS = True SEND_EMAIL_ALERTS = True +SEND_MATTERMOST_ALERTS = True # Safety check on debug mode for production if (DEBUG == True):