Skip to content

Commit

Permalink
Add SMTP alert possibility
Browse files Browse the repository at this point in the history
Add SMTP alert possibility from PR 164.
  • Loading branch information
eifelmicha authored Nov 27, 2020
1 parent b7f33bb commit 399654c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions templates/keepalived.conf.j2
Original file line number Diff line number Diff line change
Expand Up @@ -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 %}

Expand Down

0 comments on commit 399654c

Please sign in to comment.