Move Pi-hole backup node from Serenity to NOMAD

This commit is contained in:
Fizzlepoof
2026-05-15 15:37:35 +00:00
parent 66c97ae6b5
commit 6278191614
13 changed files with 321 additions and 20 deletions

View File

@@ -0,0 +1,32 @@
global_defs {
router_id ${ROUTER_ID_NAME}
}
vrrp_script chk_pihole_web {
script "grep -qi ':${PIHOLE_WEB_PORT_HEX}' /proc/net/tcp /proc/net/tcp6"
interval 2
fall 2
rise 2
}
vrrp_instance VI_DNS {
state ${KEEPALIVED_STATE}
interface ${LAN_INTERFACE}
virtual_router_id ${KEEPALIVED_ROUTER_ID}
priority ${KEEPALIVED_PRIORITY}
advert_int 1
${NOPREEMPT_LINE}
authentication {
auth_type PASS
auth_pass ${KEEPALIVED_PASSWORD}
}
virtual_ipaddress {
${VIP_CIDR}
}
track_script {
chk_pihole_web
}
}