blob: 01833f2a74835b3bbd7bac71eb0f822d12f35d70 [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
Petr Michalecb48338d2017-05-18 15:20:55 +020039 track_script:
40 check_haproxy:
41 interval: 10
42 check_mysql_cluster:
43 weight: 50
Petr Michalec8863f472017-05-05 15:57:22 +020044 VIP4:
45 priority: 100
46 virtual_router_id: 14
47 password: pass
48 addresses:
49 - 192.168.14.1
50 - 192.168.14.2
51 interface: eth0
Petr Michalecb48338d2017-05-18 15:20:55 +020052 track_script:
53 check_haproxy: None
54 check_ssh_port:
55 weight: 50
Petr Michalec97aab162017-02-21 14:16:18 +010056 vrrp_scripts:
Petr Michalec8863f472017-05-05 15:57:22 +020057 check_ssh_port:
58 name: check_port
59 args: "22"
60 check_mysql_cluster:
61 args:
62 - clustercheck
63 - clustercheck
64 - available_when_donor=0
65 - available_when_readonly=0
66 check_haproxy:
67 name: check_pidof
68 args: haproxy
69 check_haproxy2:
70 name: check_pidof
71 args:
72 - haproxy
73 check_random_exit:
Petr Michalec97aab162017-02-21 14:16:18 +010074 interval: 10
75 content: |
76 #!/bin/bash
77 exit $(($RANDOM%2))
jan kaufman636b8152016-01-26 14:02:14 +010078