Skip to content

Commit

Permalink
Added vars for max limit to defaults
Browse files Browse the repository at this point in the history
  • Loading branch information
Matej Jostak authored and Matej Jostak committed Nov 11, 2024
1 parent c79fef7 commit 1cda4ea
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 5 additions & 1 deletion defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,12 @@ perun_ldap_ds389_aci_content:
perun_ldap_backup_hostel: no
perun_ldap_daily_backup_hour: 20
perun_ldap_daily_backup_minute: 45

#set var for max open file limit for LS
perun_ldap_max_open_files_limits: false

perun_ldap_max_open_soft_files_user_ldap_value: "1024" # Výchozí měkký limit pro uživatele openLDAP
perun_ldap_max_open_hard_files_user_ldap_value: "4096" # Výchozí tvrdý limit pro uživatele openLDAP
perun_ldap_max_open_system_files_value: "1048576" # Výchozí limit pro celý systém
perun_ldap_no_file_limit_value: "4096" # Výchozí limit podobný tvrdému limitu pro uživatele


4 changes: 0 additions & 4 deletions tasks/perun_openldap_config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,6 @@
when: perun_ldap_max_open_files_limits
block:
- name: "set soft open file limit for openldap user"
# when: perun_ldap_max_open_files_limits
community.general.pam_limits:
domain: openldap
limit_type: soft
Expand All @@ -146,7 +145,6 @@
register: soft_limit

- name: "set hard open file limit for openldap user"
# when: perun_ldap_max_open_files_limits
community.general.pam_limits:
domain: openldap
limit_type: hard
Expand All @@ -155,7 +153,6 @@
register: hard_limit

- name: "set system-wide open files limit"
# when: perun_ldap_max_open_files_limits
ansible.posix.sysctl:
name: fs.file-max
value: "{{ perun_ldap_max_open_system_files_value }}"
Expand All @@ -169,7 +166,6 @@
mode: '0755'

- name: "add LimitNOFILE to systemd override configuration for slapd"
# when: parun_ldap_max_open_files_limits
blockinfile:
path: /etc/systemd/system/slapd.service.d/override.conf
create: yes
Expand Down

0 comments on commit 1cda4ea

Please sign in to comment.