haproxy: Support for external IPv6 (VIP)

This change allows usage of IPv6 as public address

Change-Id: Ie82ec5fb0ac9106b39948c67d34d5ef611a8fa21
Signed-off-by: Maciej Kucia <m.kucia@partner.samsung.com>
This commit is contained in:
Maciej Kucia 2018-07-23 15:39:11 +02:00
parent ae8d085ea7
commit 0d32b76a33
2 changed files with 7 additions and 4 deletions

View File

@ -4,6 +4,7 @@
become: true
with_items:
- { name: "net.ipv4.ip_nonlocal_bind", value: 1}
- { name: "net.ipv6.ip_nonlocal_bind", value: 1}
- { name: "net.unix.max_dgram_qlen", value: 128}
when:
- set_sysctl | bool

View File

@ -103,13 +103,15 @@
- hostvars[inventory_hostname]['ansible_' + kolla_external_vip_interface]['active'] != True
- name: Checking if kolla_internal_vip_address and kolla_external_vip_address are not pingable from any node
command: ping -c 3 {{ item }}
command: "{{ item.command }} -c 3 {{ item.address }}"
register: ping_output
changed_when: false
failed_when: ping_output.rc != 1
with_items:
- "{{ kolla_internal_vip_address }}"
- "{{ kolla_external_vip_address }}"
- address: "{{ kolla_internal_vip_address }}"
command: "{{ 'ping' if kolla_internal_vip_address|ipv4 else 'ping6' }}"
- address: "{{ kolla_external_vip_address }}"
command: "{{ 'ping' if kolla_external_vip_address|ipv4 else 'ping6' }}"
when:
- enable_keepalived | bool
- "host_running_keepalived == 'None'"
@ -153,7 +155,7 @@
- api_interface_address != kolla_internal_vip_address
- name: Checking if kolla_internal_vip_address is in the same network as api_interface on all nodes
command: ip -4 -o addr show dev {{ api_interface }}
command: ip -o addr show dev {{ api_interface }}
register: ip_addr_output
changed_when: false
failed_when: >-