Puppet Class: psick::hardening
- Defined in:
- manifests/hardening.pp
Overview
This class manages the general hardening of a system. It just provides, as params, the names of the classes to include in order to manage specific hardening activities.
psick::hardening::pam_class: '::psick::hardening::pam'
psick::hardening::packages_class: '::psick::hardening::packages'
psick::hardening::services_class: '::psick::hardening::services'
psick::hardening::tcpwrappers_class: '::psick::hardening::tcpwrappers'
psick::hardening::suid_class: '::psick::hardening::suid_sgid'
psick::hardening::users_class: '::psick::hardening::users_sgid'
psick::hardening::securetty_class: '::psick::hardening::securetty'
psick::hardening::network_class: '::psick::hardening::network'
37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 |
# File 'manifests/hardening.pp', line 37
class psick::hardening (
String $pam_class = '', # lint:ignore:params_empty_string_assignment
String $packages_class = '', # lint:ignore:params_empty_string_assignment
String $services_class = '', # lint:ignore:params_empty_string_assignment
String $tcpwrappers_class = '', # lint:ignore:params_empty_string_assignment
String $suid_class = '', # lint:ignore:params_empty_string_assignment
String $users_class = '', # lint:ignore:params_empty_string_assignment
String $securetty_class = '', # lint:ignore:params_empty_string_assignment
String $network_class = '', # lint:ignore:params_empty_string_assignment
Boolean $manage = $psick::manage,
Boolean $noop_manage = $psick::noop_manage,
Boolean $noop_value = $psick::noop_value,
) {
if $manage {
if $noop_manage {
noop($noop_value)
}
if $pam_class != '' {
contain $pam_class
}
if $packages_class != '' {
contain $packages_class
}
if $services_class != '' {
contain $services_class
}
if $tcpwrappers_class != '' {
contain $tcpwrappers_class
}
if $suid_class != '' {
contain $suid_class
}
if $users_class != '' {
contain $users_class
}
if $securetty_class != '' {
contain $securetty_class
}
if $network_class != '' {
contain $network_class
}
}
}
|