Skip to content

Instantly share code, notes, and snippets.

@mb00g
Created October 1, 2020 08:34
Show Gist options
  • Save mb00g/d391c8cd74f1879b75e5a5dae0d4dbf0 to your computer and use it in GitHub Desktop.
Save mb00g/d391c8cd74f1879b75e5a5dae0d4dbf0 to your computer and use it in GitHub Desktop.
global_defs {
        notification_email {
            fajar at bla bla bla
        }
        notification_email_from [email protected]
        smtp_server 127.0.0.1
        smtp_connect_timeout 30
    }

    vrrp_script chk_haproxy {
        script "/usr/bin/kill -0 haproxy"
        interval 2
        weight 2
    }

    vrrp_instance VI_1 {
        state MASTER  
        interface eth0 
        virtual_router_id 51
        priority 100  
        advert_int 1   
        authentication {
            auth_type PASS
            auth_pass iki_passwd
        }

    virtual_ipaddress {
        103.x.x.x dev eth0
        }

    track_script {
        chk_haproxy
        }
    }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment