From 00bc0dad2781cc11ae7ff251749d2820c231fbb3 Mon Sep 17 00:00:00 2001 From: Pavel Loginov Date: Fri, 5 Mar 2021 11:33:44 +0600 Subject: [PATCH] v5.0.1.0 Changelog: https://haproxy-wi.org/changelog.py#5_0_1 --- app/scripts/ansible/roles/keepalived/templates/add_vrrp.conf.j2 | 2 +- .../ansible/roles/keepalived/templates/keepalived.conf.j2 | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/scripts/ansible/roles/keepalived/templates/add_vrrp.conf.j2 b/app/scripts/ansible/roles/keepalived/templates/add_vrrp.conf.j2 index 50c16ae..bda0e4b 100644 --- a/app/scripts/ansible/roles/keepalived/templates/add_vrrp.conf.j2 +++ b/app/scripts/ansible/roles/keepalived/templates/add_vrrp.conf.j2 @@ -1,7 +1,7 @@ vrrp_instance VI_{{IP}} { state {{MASTER}} interface {{ETH}} - virtual_router_id {{ range(101, 1000) | random }} + virtual_router_id {{ range(2, 255) | random }} priority 103 track_script { diff --git a/app/scripts/ansible/roles/keepalived/templates/keepalived.conf.j2 b/app/scripts/ansible/roles/keepalived/templates/keepalived.conf.j2 index f896265..78816ef 100644 --- a/app/scripts/ansible/roles/keepalived/templates/keepalived.conf.j2 +++ b/app/scripts/ansible/roles/keepalived/templates/keepalived.conf.j2 @@ -10,7 +10,7 @@ vrrp_script chk_haproxy { vrrp_instance VI_1 { state {{MASTER}} interface {{ETH}} - virtual_router_id 100 + virtual_router_id 1 priority 102 #check if we are still running