Skip to content

Commit

Permalink
add support for "native_ipv6" and unicast_peer
Browse files Browse the repository at this point in the history
  • Loading branch information
Nicholas Klem committed Oct 10, 2014
1 parent 3f01099 commit b81cf34
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
8 changes: 8 additions & 0 deletions manifests/vrrp/instance.pp
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,12 @@
#
# $notify_script:: Define the notify script.
# Default: undef.
#
# $native_ipv6:: Use IPv6 even though there are IPv4 adresses on the interface
# Default: undef
#
# $unicast_peer:: Unicast peer for mcast commmunication
# Default: undef

define keepalived::vrrp::instance (
$interface,
Expand All @@ -106,6 +112,8 @@
$notify_script_backup = undef,
$notify_script_fault = undef,
$notify_script = undef,
$native_ipv6 = undef,
$unicast_peer = undef,

) {
concat::fragment { "keepalived.conf_vrrp_instance_${name}":
Expand Down
10 changes: 10 additions & 0 deletions templates/vrrp_instance.erb
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,16 @@ vrrp_instance <%= @name %> {
nopreempt
<%- end -%>

<%- if @native_ipv6 -%>
native_ipv6
<%- end -%>

<%- if @unicast_peer -%>
unicast_peer {
<%- [@unicast_peer].flatten.each do |peeraddress| -%>
<%= peeraddress %>
}
<%- end -%>

# notify scripts and alerts are optional
#
Expand Down

0 comments on commit b81cf34

Please sign in to comment.