Puppet Class: profile::toolforge::bastion::resourcecontrol

Defined in:
modules/profile/manifests/toolforge/bastion/resourcecontrol.pp

Overview

*nproc

limits.conf nproc

Parameters:

  • nproc (Integer) (defaults to: lookup('profile::toolforge::bastion::nproc', {default_value => 250}))


5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
# File 'modules/profile/manifests/toolforge/bastion/resourcecontrol.pp', line 5

class profile::toolforge::bastion::resourcecontrol(
    Integer $nproc = lookup('profile::toolforge::bastion::nproc', {default_value => 250}),
){
    class { 'systemd::slice::all_users':
        all_users_slice_config => file('profile/toolforge/bastion-user-resource-control.conf'),
        pkg_ensure             => 'latest',
    }

    file {'/etc/security/limits.conf':
        ensure  => file,
        owner   => 'root',
        group   => 'root',
        mode    => '0444',
        content => template('profile/toolforge/limits.conf.erb'),
    }
}