From 6fbd226c7e033f150086ef50fa7fc0b2ec580058 Mon Sep 17 00:00:00 2001 From: kai Date: Sun, 26 Apr 2026 13:46:47 +0000 Subject: [PATCH] keepalived.conf_Master --- keepalived.conf_Master | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 keepalived.conf_Master diff --git a/keepalived.conf_Master b/keepalived.conf_Master new file mode 100644 index 0000000..e56742a --- /dev/null +++ b/keepalived.conf_Master @@ -0,0 +1,28 @@ +vrrp_script chk_pihole { + script "/usr/local/bin/check_pihole.sh" + interval 2 + weight -30 + fall 2 + rise 2 +} + +vrrp_instance VI_PIHole { + state MASTER + interface eth0 + virtual_router_id 51 + priority 200 + advert_int 1 + + authentication { + auth_type PASS + auth_pass CHANGE_ME_SECURE + } + + virtual_ipaddress { + 192.168.178.10 + } + + track_script { + chk_pihole + } +} \ No newline at end of file