2016-07-05 18:29:03 +02:00
|
|
|
---
|
|
|
|
# http://www.keepalived.org/
|
|
|
|
#
|
|
|
|
keepalived_install: False
|
|
|
|
keepalived_enabled: '{{ keepalived_install }}'
|
|
|
|
keepalived_version: 1.1.20
|
|
|
|
keepalived_repo: 'ppa:keepalived/stable'
|
|
|
|
keepalived_pkg_state: latest
|
|
|
|
# Use 'keepalived={{ keepalived_version }}' if you want a specific version
|
|
|
|
keepalived_pkgs:
|
|
|
|
- keepalived
|
|
|
|
|
|
|
|
keepalived_mcast_addr: 224.0.0.0/8
|
|
|
|
keepalived_floating_ip1: 127.0.0.1
|
|
|
|
keepalived_script1_name: chk_haproxy
|
|
|
|
keepalived_inst_priority: 100
|
|
|
|
|
2016-08-08 18:18:41 +02:00
|
|
|
keepalived_nagios_check: False
|
|
|
|
keepalived_notify_script: /usr/local/bin/keepalived_notify
|
|
|
|
|
2016-07-05 18:29:03 +02:00
|
|
|
keepalived_scripts:
|
|
|
|
- name: '{{ keepalived_script1_name }}'
|
|
|
|
script: 'killall -0 haproxy'
|
|
|
|
# In seconds
|
|
|
|
interval: 2
|
|
|
|
# Priority increment
|
|
|
|
weight: 2
|
|
|
|
|
|
|
|
keepalived_instances:
|
|
|
|
- name: VI_1
|
|
|
|
interface: eth0
|
|
|
|
state: MASTER
|
|
|
|
vrouter_id: 51
|
2016-08-08 18:18:41 +02:00
|
|
|
notify: '{{ keepalived_notify_script }}'
|
2016-07-05 18:29:03 +02:00
|
|
|
priority: '{{ keepalived_inst_priority }}'
|
|
|
|
v_addr:
|
|
|
|
- '{{ keepalived_floating_ip1 }}'
|
|
|
|
track_script:
|
|
|
|
- '{{ keepalived_script1_name }}'
|
2016-10-13 15:56:40 +02:00
|
|
|
#track_interface:
|
|
|
|
# - eth0
|