limits

contributions requested
A module for managing /etc/security/limits.conf/

10,539 downloads

9,554 latest version

4.3 quality score

Support the Puppet Community by contributing to this module

You are welcome to contribute to this module by suggesting new features, currency updates, or fixes. Every contribution is valuable to help ensure that the module remains compatible with the latest Puppet versions and continues to meet community needs. Complete the following steps:

  1. Review the module’s contribution guidelines and any licenses. Ensure that your planned contribution aligns with the author’s standards and any legal requirements.
  2. Fork the repository on GitHub, make changes on a branch of your fork, and submit a pull request. The pull request must clearly document your proposed change.

For questions about updating the module, contact the module’s author.

Version information

  • 0.1.5 (latest)
  • 0.1.4
  • 0.1.3
  • 0.1.2
  • 0.1.1
  • 0.1.0
released Sep 3rd 2014
This version is compatible with:
  • RedHat
    ,
    CentOS

Start using this module

  • r10k or Code Manager
  • Bolt
  • Manual installation
  • Direct download

Add this module to your Puppetfile:

mod 'harsha-limits', '0.1.5'
Learn more about managing modules with a Puppetfile

Add this module to your Bolt project:

bolt module add harsha-limits
Learn more about using this module with an existing project

Manually install this module globally with Puppet module tool:

puppet module install harsha-limits --version 0.1.5

Direct download is not typically how you would use a Puppet module to manage your infrastructure, but you may want to download the module in order to inspect the code.

Download

Documentation

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!