summaryrefslogtreecommitdiff
path: root/roles/monitoring/alerta/templates/alertad.conf.j2.j2
diff options
context:
space:
mode:
Diffstat (limited to 'roles/monitoring/alerta/templates/alertad.conf.j2.j2')
-rw-r--r--roles/monitoring/alerta/templates/alertad.conf.j2.j24
1 files changed, 4 insertions, 0 deletions
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 %}