Skip to content

Commit

Permalink
add simple track_interface support
Browse files Browse the repository at this point in the history
  • Loading branch information
epleterte committed Sep 25, 2013
1 parent e7e01c7 commit 446888e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions manifests/vrrp/instance.pp
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@
$auth_type = undef,
$auth_pass = undef,
$track_script = undef,
$track_interface = undef,
$lvs_interface = undef,
$virtual_ipaddress_int = undef,
$virtual_routes = undef,
Expand Down
6 changes: 6 additions & 0 deletions templates/vrrp_instance.erb
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,12 @@ vrrp_instance <%= @name %> {
}
<%- else -%>
<%- end -%>
<%- if @track_interface -%>

track_interface {
<% @track_interface.each do |tif| %><%= tif %><%- end %>
}
<%- end -%>
<%- if @virtual_ipaddress_int -%>

virtual_ipaddress {
Expand Down

0 comments on commit 446888e

Please sign in to comment.