summaryrefslogtreecommitdiff
path: root/doc/sync/keepalived-multi2.conf
blob: 91ab0190ed8c65879005a5bbacc3513e4689e74a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
#
# Simple script for multi-primary setups
#

vrrp_sync_group G1 {   # must be before vrrp_instance declaration
  group {
    VI_1
    VI_2
  }
  notify_master "/etc/conntrackd/multiprimary.sh primary 1"
  notify_backup "/etc/conntrackd/multiprimary.sh backup 1"
  notify_fault "/etc/conntrackd/multiprimary.sh fault 1"
}

vrrp_sync_group G2 {   # must be before vrrp_instance declaration
  group {
    VI_3
    VI_4
  }
  notify_master "/etc/conntrackd/multiprimary.sh primary 2"
  notify_backup "/etc/conntrackd/multiprimary.sh backup 2"
  notify_fault "/etc/conntrackd/multiprimary.sh fault 2"
}

vrrp_instance VI_1 {
    interface eth1
    state SLAVE
    virtual_router_id 61
    priority 10
    advert_int 3
    authentication {
      auth_type PASS
      auth_pass papas_con_tomate
    }
}

vrrp_instance VI_2 {
    interface eth2
    state SLAVE
    virtual_router_id 61
    priority 10
    advert_int 3
    authentication {
      auth_type PASS
      auth_pass papas_con_tomate
    }
}

vrrp_instance VI_3 {
    interface eth1
    state SLAVE 
    virtual_router_id 62
    priority 90
    advert_int 3
    authentication {
      auth_type PASS
      auth_pass papas_con_tomate
    }
}

vrrp_instance VI_4 {
    interface eth2
    state SLAVE
    virtual_router_id 62
    priority 90
    advert_int 3
    authentication {
      auth_type PASS
      auth_pass papas_con_tomate
    }
}