From 8abc6406b3365fc8d6f25e293aee2b56c4ca611a Mon Sep 17 00:00:00 2001 From: Christian Pointner Date: Wed, 16 Mar 2022 21:39:40 +0100 Subject: alerta: tweak blackout settings --- roles/monitoring/alerta/templates/alertad.conf.j2.j2 | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'roles/monitoring/alerta/templates/alertad.conf.j2.j2') diff --git a/roles/monitoring/alerta/templates/alertad.conf.j2.j2 b/roles/monitoring/alerta/templates/alertad.conf.j2.j2 index b013f480..cf0b2426 100644 --- a/roles/monitoring/alerta/templates/alertad.conf.j2.j2 +++ b/roles/monitoring/alerta/templates/alertad.conf.j2.j2 @@ -5,6 +5,10 @@ HEARTBEAT_TIMEOUT = {{ alerta_heartbeat_timeout }} DEFAULT_ENVIRONMENT = '{{ alerta_default_environment }}' ALLOWED_ENVIRONMENTS = ['{{ alerta_environments | join("', '") }}'] PLUGINS = ['{{ alerta_plugins | join("', '") }}'] +{% if 'blackout' in alerta_plugins %} +NOTIFICATION_BLACKOUT = {{ 'True' if alerta_plugin_blackout.set_status else 'False' }} +BLACKOUT_ACCEPT = ['{{ alerta_plugin_blackout.accept | join("', '") }}'] +{% endif %} {% if 'heartbeat' in alerta_plugins %} HEARTBEAT_EVENTS = ['{{ alerta_plugin_heartbeat.events | join("', '") }}'] {% endif %} -- cgit v1.2.3