keepalived: change priorities
This commit is contained in:
parent
48deabba50
commit
f579e08e21
2 changed files with 3 additions and 2 deletions
|
@ -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
|
||||||
...
|
...
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue