Puppet Class: os_hardening::umask
- Defined in:
- manifests/umask.pp
Overview
Class: os_hardening::umask
Configures system umask.
14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 |
# File 'manifests/umask.pp', line 14
class os_hardening::umask (
Optional[Integer] $system_umask = undef,
) {
if $system_umask != undef {
file { '/etc/profile.d/umask.sh':
ensure => file,
content => template('os_hardening/umask.sh.erb'),
owner => 'root',
group => 'root',
mode => '0644',
}
}
else {
file { '/etc/profile.d/umask.sh':
ensure => absent,
}
}
}
|