aboutsummaryrefslogtreecommitdiffstats
path: root/charms/trusty/keepalived/templates/keepalived.conf
blob: 594e9267b59c77b76c4854a873cb9949aedf2326 (plain)
1
2
3
4
5
6
7
8
9
10
vrrp_instance VI_1 {
    interface eth0
    state {% if is_leader %}MASTER{% else %}BACKUP{% endif %}
    priority {% if is_leader %}101{% else %}100{% endif %}
    virtual_router_id {{ config['router-id'] }}

    virtual_ipaddress {
        {{ config['virtual-ip'] }}
    }
}