Skip to content

Latest commit

 

History

History
82 lines (69 loc) · 1.34 KB

README.md

File metadata and controls

82 lines (69 loc) · 1.34 KB

Ruby CI

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