blob: 8dbb4ae6fe08879bf5ade3853d4f9ffec6f1b387 [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 Michalec97aab162017-02-21 14:16:18 +010021 track_script: random_check
22 vrrp_scripts:
23 random_check:
24 interval: 10
25 content: |
26 #!/bin/bash
27 exit $(($RANDOM%2))
jan kaufman636b8152016-01-26 14:02:14 +010028