jan kaufman | 636b815 | 2016-01-26 14:02:14 +0100 | [diff] [blame] | 1 | keepalived: |
| 2 | cluster: |
| 3 | enabled: True |
| 4 | instance: |
Petr Michalec | 97aab16 | 2017-02-21 14:16:18 +0100 | [diff] [blame] | 5 | 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 kaufman | 636b815 | 2016-01-26 14:02:14 +0100 | [diff] [blame] | 13 | VIP1: |
Petr Michalec | 97aab16 | 2017-02-21 14:16:18 +0100 | [diff] [blame] | 14 | priority: 100 |
| 15 | virtual_router_id: 11 |
jan kaufman | 636b815 | 2016-01-26 14:02:14 +0100 | [diff] [blame] | 16 | password: pass |
| 17 | addresses: |
| 18 | - 192.168.10.1 |
| 19 | - 192.168.10.2 |
| 20 | interface: eth0 |
Petr Michalec | 97aab16 | 2017-02-21 14:16:18 +0100 | [diff] [blame] | 21 | track_script: random_check |
| 22 | vrrp_scripts: |
| 23 | random_check: |
| 24 | interval: 10 |
| 25 | content: | |
| 26 | #!/bin/bash |
| 27 | exit $(($RANDOM%2)) |
jan kaufman | 636b815 | 2016-01-26 14:02:14 +0100 | [diff] [blame] | 28 | |