Puppet Class: os_hardening::limits
- Defined in:
- manifests/limits.pp
Overview
Class: os_hardening::limits
Configures the limits.conf. Sets:
-
disable core dumps
16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 |
# File 'manifests/limits.pp', line 16
class os_hardening::limits (
Boolean $enable_core_dump = false,
) {
if $enable_core_dump == false {
file { '/etc/security/limits.d/10.hardcore.conf':
ensure => file,
source => 'puppet:///modules/os_hardening/limits.conf',
owner => 'root',
group => 'root',
mode => '0400',
}
} else {
file { '/etc/security/limits.d/10.hardcore.conf':
ensure => absent,
}
}
}
|