blob: 73de34c83042f247620da34a8eb3f2d9f52ade2c [file] [log] [blame]
jan kaufman636b8152016-01-26 14:02:14 +01001keepalived:
2 cluster:
3 enabled: True
4 instance:
Petr Michalec97aab162017-02-21 14:16:18 +01005 VIP0:
6 priority: 100
7 virtual_router_id: 10
8 password: pass
9 addresses:
10 - 192.168.11.1
11 - 192.168.11.2
12 interface: eth0
jan kaufman636b8152016-01-26 14:02:14 +010013 VIP1:
Petr Michalec97aab162017-02-21 14:16:18 +010014 priority: 100
15 virtual_router_id: 11
jan kaufman636b8152016-01-26 14:02:14 +010016 password: pass
17 addresses:
18 - 192.168.10.1
19 - 192.168.10.2
20 interface: eth0
Petr Michalec8863f472017-05-05 15:57:22 +020021 track_script: check_random_exit
22 VIP2:
23 priority: 100
24 virtual_router_id: 12
25 password: pass
26 addresses:
27 - 192.168.12.1
28 - 192.168.12.2
29 interface: eth0
30 track_script: check_haproxy
31 VIP3:
32 priority: 100
33 virtual_router_id: 13
34 password: pass
35 addresses:
36 - 192.168.13.1
37 - 192.168.13.2
38 interface: eth0
39 track_script: check_mysql_cluster
40 VIP4:
41 priority: 100
42 virtual_router_id: 14
43 password: pass
44 addresses:
45 - 192.168.14.1
46 - 192.168.14.2
47 interface: eth0
48 track_script: check_ssh_port
Petr Michalec97aab162017-02-21 14:16:18 +010049 vrrp_scripts:
Petr Michalec8863f472017-05-05 15:57:22 +020050 check_ssh_port:
51 name: check_port
52 args: "22"
53 check_mysql_cluster:
54 args:
55 - clustercheck
56 - clustercheck
57 - available_when_donor=0
58 - available_when_readonly=0
59 check_haproxy:
60 name: check_pidof
61 args: haproxy
62 check_haproxy2:
63 name: check_pidof
64 args:
65 - haproxy
66 check_random_exit:
Petr Michalec97aab162017-02-21 14:16:18 +010067 interval: 10
68 content: |
69 #!/bin/bash
70 exit $(($RANDOM%2))
jan kaufman636b8152016-01-26 14:02:14 +010071