Version information
released Dec 8th 2014
This version is compatible with:
- Puppet Enterprise 3.3.x
- Puppet 2.7
Start using this module
Add this module to your Puppetfile:
mod 'ceritsc-pam_limits', '0.9.3'
Learn more about managing modules with a PuppetfileDocumentation
ceritsc/pam_limits — version 0.9.3 Dec 8th 2014
Puppet pam_limits module
This module manages pam_limits configuration files (only).
Overview
This is the Puppet pam_limits module. It can be used to manage particular limits in single /etc/security/limits.conf or in separate files included from /etc/security/limits.d (if "context" was specified). The second feature is only supported on new systems where Augeas can manage these files.
This module is a mix of other Puppet modules and Wiki, esp.:
- http://projects.puppetlabs.com/projects/1/wiki/puppet_augeas#/etc/security/limits.conf
- https://github.com/kupson/puppet-pam_limits/blob/master/manifests/init.pp
to meet these requirements (which other modules didn't):
- modify conf. files with Augeas only
- prepend each Puppet managed limit with comment
- support both limits.conf and includes from limits.d/
- don't install anything
Requirements
Module has been tested on:
- Puppet 2.7
- Debian 6.0
Quick Start
Configure limit
pam_limits { name:
ensure => present or absent,
filename => configuration file,
domain => user or group name, wildcard,
type => soft or hard or -,
item => limit name,
value => limit value;
}
Example: set max number of processes for users in group 'student'
pam_limits { 'nproc-student':
ensure => present,
domain => '@student',
type => 'hard',
item => 'nproc',
value => '20';
}
CERIT Scientific Cloud, support@cerit-sc.cz
2014-12-08 - Release 0.9.3
Fix file/directory permissions.
Bugfixes
- Fix PF module archive file/directory permissions.
2014-09-02 - Release 0.9.2
Summary
Fix metadata.json
Bugfixes
- Fix metadata.json module dependencies
2014-08-08 - Release 0.9.1
Summary
Don't validate $value.
Bugfixes
- Don't validate $value, could complain e.g.: "is not a string. It looks to be a Fixnum at"
2014-08-08 - Release 0.9.0
Summary
Initial release.
Dependencies
- puppetlabs/stdlib (>= 4.0.0)
The MIT License (MIT) Copyright (c) 2014 Institute of Computer Science, Masaryk University Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.