Skip to content

Commit

Permalink
Support unicast (issue #23) (#24)
Browse files Browse the repository at this point in the history
* Support unicast

See #23

* #23 update documentation to match change
  • Loading branch information
rorygibson authored and tersmitten committed Feb 23, 2017
1 parent cb40940 commit ecddfba
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ Set up the latest or a specific version of [Keepalived](http://www.keepalived.or
* `keepalived_vrrp_instances.key.notify_fault_user`: [optional]: Specify the user / group to run this script under (since `1.3.0`)
* `keepalived_vrrp_instances.key.notify_master`: [optional]: Scripts that is invoked when a server changes state (to `MASTER`)
* `keepalived_vrrp_instances.key.notify_master_user`: [optional]: Specify the user / group to run this script under (since `1.3.0`)

* `keepalived_vrrp_instances.key.unicast_peer`: [optional]: IP address of aired unicast address (if you don't want to use multicast)
#### Dependencies

None
Expand Down
6 changes: 6 additions & 0 deletions templates/etc/keepalived/keepalived.conf.j2
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,12 @@ vrrp_instance {{ key }} {
{{ track_script }}
{% endfor %}
}

{% if value.unicast_peer is defined %}
unicast_peer {
{{ value.unicast_peer }}
}
{% endif %}

{% if value.notify is defined %}
notify "{{ value.notify }}" {{ value.notify_user | default('') }}
Expand Down

0 comments on commit ecddfba

Please sign in to comment.