Forge Home

pam_limits

PAM limits configuration via Augeas

11,772 downloads

10,943 latest version

2.4 quality score

We run a couple of automated
scans to help you access a
module's quality. Each module is
given a score based on how well
the author has formatted their
code and documentation and
modules are also checked for
malware using VirusTotal.

Please note, the information below
is for guidance only and neither of
these methods should be considered
an endorsement by Puppet.

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.9.3 (latest)
  • 0.9.2
  • 0.9.1
  • 0.9.0
released Dec 8th 2014
This version is compatible with:
  • Puppet Enterprise 3.3.x
  • Puppet 2.7

Start using this module

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

Add this module to your Puppetfile:

mod 'ceritsc-pam_limits', '0.9.3'
Learn more about managing modules with a Puppetfile

Add this module to your Bolt project:

bolt module add ceritsc-pam_limits
Learn more about using this module with an existing project

Manually install this module globally with Puppet module tool:

puppet module install ceritsc-pam_limits --version 0.9.3

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
Tags: pam, pam-limits

Documentation

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.:

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