![Michal Arbet](/assets/img/avatar_default.png)
For now role haproxy is maintaining haproxy and keepalived. In follow-up changes there is also proxysql added. This patch is *only* renaming/moving stuff to more prominent role loadbalancer, and moving also specific templates to subdirectory. This was done only to better diff in follow-up changes. Change-Id: I1d39d5bcaefc4016983bf267a2736b742cc3a555
27 lines
804 B
YAML
27 lines
804 B
YAML
---
|
|
- name: Setting sysctl values
|
|
vars:
|
|
should_set: "{{ item.value != 'KOLLA_UNSET' }}"
|
|
sysctl:
|
|
name: "{{ item.name }}"
|
|
state: "{{ should_set | ternary('present', 'absent') }}"
|
|
value: "{{ should_set | ternary(item.value, omit) }}"
|
|
sysctl_set: "{{ should_set }}"
|
|
sysctl_file: "{{ kolla_sysctl_conf_path }}"
|
|
become: true
|
|
with_items:
|
|
- { name: "net.ipv4.ip_nonlocal_bind", value: 1 }
|
|
- { name: "net.ipv6.ip_nonlocal_bind", value: 1 }
|
|
- { name: "net.ipv4.tcp_retries2", value: "{{ haproxy_host_ipv4_tcp_retries2 }}" }
|
|
- { name: "net.unix.max_dgram_qlen", value: 128 }
|
|
when:
|
|
- set_sysctl | bool
|
|
- item.value != 'KOLLA_SKIP'
|
|
|
|
- name: Load and persist keepalived module
|
|
import_role:
|
|
name: module-load
|
|
vars:
|
|
modules:
|
|
- {'name': ip_vs }
|