inuits/puppetlabs-limits

Name: puppetlabs-limits

Owner: Inuits

Description: Module for managing pam limits in /etc/security/limits.conf

Created: 2015-07-27 16:59:49.0

Updated: 2015-07-27 16:59:50.0

Pushed: 2015-07-27 17:00:32.0

Homepage:

Size: 86

Language: Puppet

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

Limits module for Puppet

Description

Module for managing pam limits in /etc/security/limits.conf

Usage
limits::fragment
  limits::fragment {
    "*/soft/nofile":
      value => "1024";
    "*/hard/nofile":
      value => "8192";
  }

You can also use hiera with this module, to match the example above, you can use the following configuration

In your hiera/host yaml configuration:

---
limits::fragment:
  "*/soft/nofile":
    value: '1024'
  "*/hard/nofile":
    value: '8192'

Your site.pp or other configuration should include the following:

$limits = hiera('limits::fragment', {})
create_resources('limits::fragment', $limits)

This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.