Puppet Class: os_hardening::securetty
- Defined in:
- manifests/securetty.pp
Overview
Class: os_hardening::securetty
Configures securetty.
12 13 14 15 16 17 18 19 20 21 22 23 24 25 |
# File 'manifests/securetty.pp', line 12
class os_hardening::securetty (
Array $root_ttys = ['console','tty1','tty2','tty3','tty4','tty5','tty6'],
) {
$ttys = join($root_ttys, "\n")
file { '/etc/securetty':
ensure => file,
content => template('os_hardening/securetty.erb'),
owner => 'root',
group => 'root',
mode => '0400',
}
}
|