https://github.com/ryancurrah/limits-formula
A saltstack formula for managing the limits.conf file
https://github.com/ryancurrah/limits-formula
limits pam saltstack saltstack-formula
Last synced: 2 months ago
JSON representation
A saltstack formula for managing the limits.conf file
- Host: GitHub
- URL: https://github.com/ryancurrah/limits-formula
- Owner: ryancurrah
- License: gpl-2.0
- Created: 2014-11-09T15:56:36.000Z (almost 11 years ago)
- Default Branch: master
- Last Pushed: 2017-07-28T14:09:22.000Z (about 8 years ago)
- Last Synced: 2025-04-19T21:16:29.634Z (6 months ago)
- Topics: limits, pam, saltstack, saltstack-formula
- Language: Ruby
- Size: 18.6 KB
- Stars: 3
- Watchers: 1
- Forks: 7
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
[](https://travis-ci.org/ryancurrah/limits-formula)
# limits-formula
SaltStack formula for setting user limits in PAM module
## Description
The pam_limits.so module applies ulimit limits, nice priority and number of simultaneous login sessions
limit to user login sessions. This description of the configuration file syntax applies to the
/etc/security/limits.conf file and *.conf files in the /etc/security/limits.d directory.## Tests
The Travis CI tests run the state on a Ubuntu server. By running the state it checks that there is no syntax errors and that it works for Ubuntu. Other operating systems are NOT tested therefore have a risk of not working on them. ServerSpec is used to verify that the state installed the proper packages and created limits.conf with the proper owner, group, mode and settings.
## Example Pillar
```yaml
limits:
users:
johndoe:
- limit_type: hard
limit_item: core
limit_value: unlimited
- limit_type: hard
limit_item: nproc
limit_value: 1000
janedoe:
- limit_type: hard
limit_item: locks
limit_value: 300
groups:
employees:
- limit_type: hard
limit_item: cpu
limit_value: 5
- limit_type: hard
limit_item: nproc
limit_value: 500
```## More info about limits
[http://linux.die.net/man/5/limits.conf](http://linux.die.net/man/5/limits.conf)
## Support
* Debian
* Ubuntu
* Centos
* Fedora
* RedHat
* Amazon
* Gentoo
* Mint
* SUSE## Contributors
* danoe
* tampakrap
* cboltz