Pastebin
Retrouvez, créez et partagez vos snippets en temps réel.
Rechercher un Pastebin
Aucun paste trouvé.
Créer un paste
Pastebin
Blog
zzzzzzzzzzzzzeeeeeeeeeeeeeeeee
sudo nano /etc/keepalived/check_haproxy.sh sudo chmod +x /etc/keepalived/check_haproxy.sh #!/bin/bash pidof haproxy > /dev/null 2>&1 ===================================== global_defs { router_id HAPROXY_VRRP } vrrp_script chk_haproxy { script "/etc/keepalived/check_haproxy.sh" interval 2 weight -20 fall 2 rise 1 } vrrp_instance VI_1 { state MASTER interface eth0 virtual_router_id 51 priority 150 advert_int 1 authentication { auth_type PASS auth_pass StrongPass123 } virtual_ipaddress { 192.168.10.100/24 } track_script { chk_haproxy } } ==================================== global_defs { router_id HAPROXY_VRRP } vrrp_script chk_haproxy { script "/etc/keepalived/check_haproxy.sh" interval 2 weight -20 fall 2 rise 1 } vrrp_instance VI_1 { state BACKUP interface eth0 virtual_router_id 51 priority 100 advert_int 1 authentication { auth_type PASS auth_pass StrongPass123 } virtual_ipaddress { 192.168.10.100/24 } track_script { chk_haproxy } }
Créé il y a 4 semaines.