Version information
released Sep 3rd 2014
This version is compatible with:
- ,
Start using this module
Add this module to your Puppetfile:
mod 'harsha-limits', '0.1.5'
Learn more about managing modules with a PuppetfileDocumentation
harsha/limits — version 0.1.5 Sep 3rd 2014
puppet-limits
Manage user and group limits via Puppet
This module manages the limits.
How to use
Purge limits.d directory
The class limits
will purge the limit.d directory as default.
You can explicit change this with the parameter purge_limits_d_dir
or just do not call the class.
class { 'limits': }
limits::limits { 'username_nofile':
ensure => present,
user => 'username',
limit_type => 'nofile',
hard => 16384,
soft => 16384,
}
Do NOT purge limits.d directory explicit
class { 'limits':
purge_limits_d_dir => false,
}
limits::limits { 'username_nofile':
ensure => present,
user => 'username',
limit_type => 'nofile',
hard => 16384,
}
Set both limit types in one line
limits::limits { 'username_nofile':
ensure => present,
user => 'username',
limit_type => 'nofile',
both => 16384,
}
One of hard, soft or both must be set!
Copyright 2014 Harsha Krishnareddy Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.