From 399654cc70d58bc60376f7dd4eb9d0e8db2605d8 Mon Sep 17 00:00:00 2001 From: Michael Schmitz <37506516+eifelmicha@users.noreply.github.com> Date: Fri, 27 Nov 2020 12:46:21 +0100 Subject: [PATCH] Add SMTP alert possibility Add SMTP alert possibility from PR 164. --- templates/keepalived.conf.j2 | 3 +++ 1 file changed, 3 insertions(+) diff --git a/templates/keepalived.conf.j2 b/templates/keepalived.conf.j2 index 66a1d2b..db707e7 100644 --- a/templates/keepalived.conf.j2 +++ b/templates/keepalived.conf.j2 @@ -164,6 +164,9 @@ vrrp_instance {{ name }} { {% if instance.notify_stop is defined %} notify_stop "{{ instance.notify_stop }}" {% endif %} + {% if instance.smtp_alert is defined and instance.smtp_alert | bool %} + smtp_alert # Send email notification during state transition + {% endif %} } {% endfor %}