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

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

Overview

*nproc

limits.conf nproc

Parameters:

  • nproc (Any) (defaults to: hiera('profile::toolforge::bastion::nproc',30))


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

class profile::toolforge::bastion::resourcecontrol(
    $nproc = hiera('profile::toolforge::bastion::nproc',30),
){
    class { 'systemd::slice::all_users':
        all_users_slice_config  => file('profile/toolforge/bastion-user-resource-control.conf'),
    }

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