library/roles/keepalived/templates/keepalived.conf.j2: Add new options to the template.

This commit is contained in:
Andrea Dell'Amico 2016-08-04 16:58:37 +02:00
parent c97f934863
commit d6e55b1f96
1 changed files with 10 additions and 0 deletions

View File

@ -9,9 +9,19 @@ vrrp_script {{ script.name }} {
{% for instance in keepalived_instances %}
vrrp_instance {{ instance.name }} {
interface {{ instance.interface }}
{% if instance.state is defined %}
state {{ instance.state }}
{% endif %}
virtual_router_id {{ instance.vrouter_id }}
priority {{ instance.priority }}
{% if instance.notify is defined %}
notify {{ instance.notify }}
{% endif %}
{% if instance.authentication is defined %}
authentication {
auth_type {{ instance.authentication }}
auth_pass {{ instance.authpass }}
{% endif %}
virtual_ipaddress {
{% for addr in instance.v_addr %}
{{ addr }}