Puppet-ulimit

Puppet module to manage Ulimit on Linux hosts

View the Project on GitHub arioch/puppet-ulimit

Puppet Ulimit

Requirements

Tested on...

Example usage

node /box/ {
  include ulimit

  ulimit::rule {
    'example1':
      ulimit_domain => '*',
      ulimit_type   => 'soft',
      ulimit_item   => 'nofile',
      ulimit_value  => '1024';

    'example2':
      ensure        => absent,
      ulimit_domain => '*',
      ulimit_type   => 'hard',
      ulimit_item   => 'nofile',
      ulimit_value  => '50000';
  }
}

Caveats

By default the module will purge any settings that are not managed by Puppet. While not advised you can disable this feature:

node /box/ {
  class { 'ulimit':
    purge => false,
  }
}