Make sysctl configuration path configurable

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

Change-Id: I76be2c7d78b44340a1771a9c30eb6c434c2c7c17
This commit is contained in:
Daniel 'f0o' Preussker 2025-01-19 07:11:21 +00:00
parent 45f66c28b8
commit 98f1244ca5
2 changed files with 4 additions and 0 deletions

@ -608,3 +608,5 @@ swift_pki_install_certificates:
# Define user-provided SSL certificates
# swift_user_ssl_cert: <path to cert on ansible deployment host>
# swift_user_ssl_key: <path to cert on ansible deployment host>
swift_sysctl_file: "{{ openstack_sysctl_file | default('/etc/sysctl.conf') }}"

@ -24,6 +24,7 @@
state: present
value: "1"
sysctl_set: yes
sysctl_file: "{{ swift_sysctl_file }}"
delegate_to: "{{ physical_host }}"
- name: "Set sysctl file-max"
@ -32,6 +33,7 @@
state: present
value: "{{ swift_max_file_limits }}"
sysctl_set: yes
sysctl_file: "{{ swift_sysctl_file }}"
delegate_to: "{{ physical_host }}"
- name: "Put /etc/rsyncd.conf in place"