keepalived: change priorities

This commit is contained in:
jeltz 2023-01-13 08:53:25 +01:00
parent 48deabba50
commit f579e08e21
Signed by: jeltz
GPG key ID: 800882B66C0C3326
2 changed files with 3 additions and 2 deletions

View file

@ -4,5 +4,6 @@ keepalived__virtual_routes: {}
keepalived__notify_master: [] keepalived__notify_master: []
keepalived__notify_backup: [] keepalived__notify_backup: []
keepalived__notify_fault: [] keepalived__notify_fault: []
keepalived__main: false
keepalived__max_auto_priority: -1 keepalived__max_auto_priority: -1
... ...

View file

@ -44,7 +44,7 @@ vrrp_instance instance_v4 {
virtual_router_id {{ keepalived__virtual_router_id | int }} virtual_router_id {{ keepalived__virtual_router_id | int }}
interface {{ keepalived__interface }} interface {{ keepalived__interface }}
state BACKUP state BACKUP
priority 250 priority {{ keepalived__main | ternary(250, 150) }}
nopreempt nopreempt
advert_int 1 advert_int 1
accept accept
@ -79,7 +79,7 @@ vrrp_instance instance_v6 {
virtual_router_id {{ keepalived__virtual_router_id | int }} virtual_router_id {{ keepalived__virtual_router_id | int }}
interface {{ keepalived__interface }} interface {{ keepalived__interface }}
state BACKUP state BACKUP
priority 250 priority {{ keepalived__main | ternary(250, 150) }}
nopreempt nopreempt
advert_int 1 advert_int 1
accept accept