limits

A module for manage files in /etc/security/limits.d

6,964 downloads

1,737 latest version

5.0 quality score

Version information

  • 0.1.9 (latest)
  • 0.1.8
  • 0.1.7
  • 0.1.6
  • 0.1.5
released Sep 29th 2020
This version is compatible with:
  • Puppet Enterprise 2018.1.x, 2017.3.x, 2017.2.x, 2017.1.x, 2016.5.x, 2016.4.x
  • Puppet >= 2.7.0 < 6.0.0
  • CentOS
    ,
    Debian
    ,
    Ubuntu

Start using this module

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

Add this module to your Puppetfile:

mod 'mauriciosousa-limits', '0.1.9'
Learn more about managing modules with a Puppetfile

Add this module to your Bolt project:

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

Manually install this module globally with Puppet module tool:

puppet module install mauriciosousa-limits --version 0.1.9

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

Documentation

mauriciosousa/limits — version 0.1.9 Sep 29th 2020

puppet-limits

Build Status

Manage user and group limits via Puppet

This module manages the limits.

How to use

class { 'limits': }

limits::limit { 'username_nofile':
  ensure     => present,
  user       => 'username',
  limit_type => {
    nofile  => {
      soft => 16384,
      hard => 32768,
    }
  }
}

Purge limits.d directory explicit

class { 'limits':
  purge_limits_d_dir => true,
}

limits::limit { 'username_nofile':
  ensure     => present,
  user       => 'username',
  limit_type => {
    nofile  => {
      soft => 16384,
      hard => 32768,
    }
  }
}

Set multiple limit types

class { 'limits': }

limits::limit { 'username_nofile':
  ensure     => present,
  user       => 'username',
  limit_type => {
    nofile => {
      soft => 16384,
      hard => 32768,
    },
    nproc  => {
      soft => 16384,
      hard => 32768,
    },
    core   => {
      soft => 16384,
      hard => 32768,
    }
  }
}

Set group limit types

class { 'limits': }

limits::limit { 'username_nofile':
  ensure     => present,
  user       => '@groupname',
  limit_type => {
    nofile  => {
      soft => 16384,
      hard => 32768,
    }
  }
}