17 lines
417 B
Plaintext
17 lines
417 B
Plaintext
{% for stanza in keepalived_stanzas %}
|
|
vrrp_instance {{ stanza.name }} {
|
|
state {{ stanza.state | default('BACKUP') }}
|
|
interface {{ stanza.interface }}
|
|
virtual_router_id {{ stanza.virtual_router_id }}
|
|
priority {{ stanza.priority }}
|
|
advert_int {{ stanza.advert_int | default('1') }}
|
|
authentication {
|
|
auth_type PASS
|
|
auth_pass {{ stanza.auth_pass }}
|
|
}
|
|
virtual_ipaddress {
|
|
{{ stanza.vip }}
|
|
}
|
|
}
|
|
{% endfor %}
|