rlimits

pdk
Manage configuration files for pam_limits module

Alexander Ursu

aursu

1,010 downloads

1,010 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
  • CentOS

Start using this module

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