mirror of
https://github.com/batonogov/learn-devops.git
synced 2025-11-29 00:33:02 +00:00
* Описана инфрастуктура кластера * Добавлена роль etcd * Добавлена роль haproxy * Добавлена роль keepalived * Добавлена роль ntp_install * Добавлена роль patroni * Добавлена групповые переменные --------- Co-authored-by: Fedor Batonogov <f.batonogov@yandex.ru>
15 lines
382 B
Django/Jinja
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
|
|
}
|
|
}
|