Files
learn-devops/ansible/roles/keepalived/templates/keepalived.backup.conf.j2
github-actions[bot] f8fe304cd9 patroni-postgresql-cluster (#13)
* Описана инфрастуктура кластера

* Добавлена роль etcd

* Добавлена роль haproxy

* Добавлена роль keepalived

* Добавлена роль ntp_install

* Добавлена роль patroni

* Добавлена групповые переменные

---------

Co-authored-by: Fedor Batonogov <f.batonogov@yandex.ru>
2024-06-18 10:37:21 +03:00

15 lines
382 B
Django/Jinja

vrrp_instance VI_1 {
state BACKUP
interface eth0
virtual_router_id {{ virtual_router_id }}
priority 100 # PAY ATTENTION ON PRIORITY!!
authentication {
auth_type PASS
auth_pass {{ lookup('password', 'secrets/keepalived/' + virtual_ip + ' length=64') }}
}
virtual_ipaddress {
{{ virtual_ip }} dev eth0
}
}