forked from ISTI-ansible-roles/ansible-roles
library/roles/keepalived/templates/keepalived.conf.j2: Add new options to the template.
This commit is contained in:
parent
c97f934863
commit
d6e55b1f96
|
@ -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 }}
|
||||
|
|
Loading…
Reference in New Issue