limits

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

Maurício Sousa

mauriciosousa

5,667 downloads

825 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

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,
    }
  }
}