Puppet Class: os_hardening::umask

Defined in:
manifests/umask.pp

Overview

Class: os_hardening::umask

Configures system umask.

Parameters:

  • system_umask (Any) (defaults to: undef)


12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
# File 'manifests/umask.pp', line 12

class os_hardening::umask (
  $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,
    }
  }
}