Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

keepalived: add support for trigger scripts on state changes

  • Loading branch information...
commit 590ea5d61a61a92cd2f0a1efd6549cc9568e06f5 1 parent 19cfff0
@jsierles authored
Showing with 9 additions and 0 deletions.
  1. +9 −0 keepalived/templates/default/keepalived.conf.erb
View
9 keepalived/templates/default/keepalived.conf.erb
@@ -63,6 +63,15 @@ vrrp_instance <%= name %> {
chk_<%= track %>
}
<% end -%>
+
+ <% if vrrp[:notify_master] -%>
+ notify_master "<%= vrrp[:notify_master] %>"
+ <% end -%>
+
+ <% if vrrp[:notify_backup] -%>
+ notify_backup "<%= vrrp[:notify_backup] %>"
+ <% end -%>
+
<% end -%>
}
<% end -%>
Please sign in to comment.
Something went wrong with that request. Please try again.