Skip to content

Commit 7a52144

Browse files
committed
Added prio vars to .var
1 parent ce3c398 commit 7a52144

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

.env

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,7 @@ PRIORITY=100
1111
ROUTER_ID=52
1212
VIRTUAL_IPS=192.168.1.100/24
1313
UNICAST_SRC_IP=192.168.1.101
14-
UNICAST_PEERS=192.168.1.102
14+
UNICAST_PEERS=192.168.1.102
15+
WEIGHT=50
16+
FALL=2
17+
RISE=2

conf/keepalived.conf_tpl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@ global_defs {
88
vrrp_script check_script {
99
script "/usr/local/bin/check_and_run.sh"
1010
interval 2
11-
weight 50 # Large weight difference for clear state separation
12-
fall 2 # Must fail twice to be considered down
13-
rise 2 # Must succeed twice to be considered up
11+
weight ${WEIGHT} # Large weight difference for clear state separation
12+
fall ${FALL} # Must fail twice to be considered down
13+
rise ${RISE} # Must succeed twice to be considered up
1414
}
1515

1616
vrrp_instance ${VRRP_INSTANCE} {

0 commit comments

Comments
 (0)