summaryrefslogtreecommitdiffstats
path: root/roles/keepalived/defaults/main.yml
blob: 3302b859684ebf95a82a1d3789df575e76582d78 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
---
keepalived_vrrp:
  - vips: "{{ ands_ipfailover_vips | default([]) }}"
    iface: "{{ ands_ipfailover_interface | default('eth0') }}"
  - vips: "{{ ands_inner_lb | ternary([ands_inner_lb_ip], []) }}"
    iface: "{{ ands_ipfailover_inner_interface }}"

keepalived_master_prio: 80
keepalived_backup_prio: 20
keepalived_check_interval: 5

keepalived_password: "{{ ands_secrets.keepalived }}"

keepalived_node_id: "{{ play_hosts.index(inventory_hostname) }}"
keepalived_num_nodes: "{{ play_hosts | length }}"