Make sysctl configuration path configurable
Defaults to /etc/sysctl.conf to retain current behavior Change-Id: Ie6a84a31f8281c0240519e92a217359234f1e1bb
This commit is contained in:
@@ -328,3 +328,5 @@ haproxy_static_files_default:
|
|||||||
condition: "{{ haproxy_security_txt_content is truthy }}"
|
condition: "{{ haproxy_security_txt_content is truthy }}"
|
||||||
haproxy_static_files_extra: []
|
haproxy_static_files_extra: []
|
||||||
haproxy_static_files: "{{ haproxy_static_files_default + haproxy_static_files_extra }}"
|
haproxy_static_files: "{{ haproxy_static_files_default + haproxy_static_files_extra }}"
|
||||||
|
|
||||||
|
haproxy_sysctl_file: "{{ openstack_sysctl_file | default('/etc/sysctl.conf') }}"
|
||||||
|
|||||||
@@ -0,0 +1,6 @@
|
|||||||
|
---
|
||||||
|
features:
|
||||||
|
- |
|
||||||
|
Allow the definition of a custom sysctl config path through
|
||||||
|
`openstack_sysctl_file` and/or `haproxy_sysctl_file`.
|
||||||
|
Defaults to `/etc/sysctl.conf` to retain backwards compatibility.
|
||||||
@@ -18,6 +18,7 @@
|
|||||||
name: "{{ item }}"
|
name: "{{ item }}"
|
||||||
value: 1
|
value: 1
|
||||||
sysctl_set: true
|
sysctl_set: true
|
||||||
|
sysctl_file: "{{ haproxy_sysctl_file }}"
|
||||||
state: present
|
state: present
|
||||||
when: haproxy_bind_on_non_local | bool
|
when: haproxy_bind_on_non_local | bool
|
||||||
with_items:
|
with_items:
|
||||||
|
|||||||
Reference in New Issue
Block a user