Puppet Class: os_hardening::profile

Defined in:
manifests/profile.pp

Overview

Class: os_hardening::profile

Configures profile.conf.

Parameters:

  • enable_core_dump (Boolean) (defaults to: false)


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

class os_hardening::profile (
  Boolean $enable_core_dump = false,
) {

  if $enable_core_dump == false {
    file { '/etc/profile.d/pinerolo_profile.sh':
      ensure => file,
      source => 'puppet:///modules/os_hardening/profile.conf',
      owner  => 'root',
      group  => 'root',
      mode   => '0400',
    }
  } else {
    file { '/etc/profile.d/pinerolo_profile.sh':
      ensure => absent,
    }
  }

}