Puppet Class: lsys::hardening::bash_profile

Defined in:
manifests/hardening/bash_profile.pp

Summary

Ability for /etc/profile hardening

Overview

Ability for /etc/profile hardening

Examples:

include lsys::hardening::bash_profile

Parameters:

  • system_umask (Pattern[/[0-7]{3}/]) (defaults to: '077')


10
11
12
13
14
15
16
17
18
19
20
21
# File 'manifests/hardening/bash_profile.pp', line 10

class lsys::hardening::bash_profile (
  Pattern[/[0-7]{3}/] $system_umask = '077',
) {
  if  $facts['os']['name'] in ['RedHat', 'CentOS'] {
    $osmajor = $facts['os']['release']['major']

    file { '/etc/profile' :
      ensure  => file,
      content => template("lsys/hardening/profile.el${osmajor}.erb"),
    }
  }
}