Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use /etc/security/limits.d/ #1187

Open
pearsondavid opened this issue Dec 13, 2024 · 0 comments
Open

Use /etc/security/limits.d/ #1187

pearsondavid opened this issue Dec 13, 2024 · 0 comments

Comments

@pearsondavid
Copy link

wazuh-indexer.pp add limits to /etc/security/limits.conf, please update this to use /etc/security/limits.d/ as this is the standard for most modern Linux operating systems now.

file_line { "Insert line limits nofile for ${indexer_fileuser}":
path => '/etc/security/limits.conf',
line => "${indexer_fileuser} - nofile 65535",
match => "^${indexer_fileuser} - nofile\s",
notify => Service['wazuh-indexer'],
}
file_line { "Insert line limits memlock for ${indexer_fileuser}":
path => '/etc/security/limits.conf',
line => "${indexer_fileuser} - memlock unlimited",
match => "^${indexer_fileuser} - memlock\s",
notify => Service['wazuh-indexer'],
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant