Make sysctl configuration path configurable

Defaults to /etc/sysctl.conf to retain current behavior

Change-Id: Ie6a84a31f8281c0240519e92a217359234f1e1bb
This commit is contained in:
Daniel 'f0o' Preussker
2025-01-19 07:53:26 +00:00
parent d886c4436b
commit 240d109cc8
3 changed files with 9 additions and 0 deletions

View File

@@ -328,3 +328,5 @@ haproxy_static_files_default:
condition: "{{ haproxy_security_txt_content is truthy }}"
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') }}"

View File

@@ -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.

View File

@@ -18,6 +18,7 @@
name: "{{ item }}"
value: 1
sysctl_set: true
sysctl_file: "{{ haproxy_sysctl_file }}"
state: present
when: haproxy_bind_on_non_local | bool
with_items: