Forge Home

rlimits

Manage configuration files for pam_limits module

1,821 downloads

1,821 latest version

Version information

  • 0.1.0 (latest)
released Aug 28th 2020
This version is compatible with:
  • Puppet Enterprise 2019.8.x, 2019.7.x, 2019.5.x, 2019.4.x, 2019.3.x, 2019.2.x, 2019.1.x, 2019.0.x, 2018.1.x, 2017.3.x, 2017.2.x, 2016.4.x
  • Puppet >= 4.10.0 < 7.0.0

Start using this module

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

Add this module to your Puppetfile:

mod 'aursu-rlimits', '0.1.0'
Learn more about managing modules with a Puppetfile

Add this module to your Bolt project:

bolt module add aursu-rlimits
Learn more about using this module with an existing project

Manually install this module globally with Puppet module tool:

puppet module install aursu-rlimits --version 0.1.0

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

aursu/rlimits — version 0.1.0 Aug 28th 2020

rlimits

Control configuration files for the pam_limits module (see man 5 limits.conf)

Table of Contents

  1. Description
  2. Setup - The basics of getting started with rlimits
  3. Usage - Configuration options and additional functionality
  4. Reference

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.

The syntax of the lines is as follows:

<domain><type><item><value>

Setup

What rlimits affects OPTIONAL

rlimits affects only *.conf files in the /etc/security/limits.d

Beginning with rlimits

To use this module it is enough to include it into catalog

include rlimits

Usage

   rlimit { '*/nproc/soft':
     ensure => present,
     value  => 4096,
   }

   rlimit { 'root/nproc/soft':
     ensure => present,
   }

Reference

See REFERENCE.md for reference