ansible/roles/keepalived/templates/keepalived.conf

17 lines
417 B
Plaintext
Raw Normal View History

2021-03-24 17:49:25 -05:00
{% 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') }}
2021-03-11 10:25:41 -06:00
authentication {
auth_type PASS
2021-03-24 17:49:25 -05:00
auth_pass {{ stanza.auth_pass }}
2021-03-11 10:25:41 -06:00
}
virtual_ipaddress {
2021-03-24 17:49:25 -05:00
{{ stanza.vip }}
2021-03-11 10:25:41 -06:00
}
}
2021-03-24 17:49:25 -05:00
{% endfor %}