Puppet Class: almalinux_hardening::services::ssh::loglevel
- Defined in:
- manifests/services/ssh/loglevel.pp
Summary
Set SSH Daemon LogLevel to VERBOSEOverview
Puppet Module to perform AlmaLinux 8 OS Hardening with CIS benchmark. Copyright © 2022 Jonas Hügli
24 25 26 27 28 29 30 31 32 33 34 |
# File 'manifests/services/ssh/loglevel.pp', line 24
class almalinux_hardening::services::ssh::loglevel inherits almalinux_hardening::services::ssh::service {
if $almalinux_hardening::enable_ssh_loglevel {
file_line { 'ssh_loglevel':
ensure => 'present',
path => '/etc/ssh/sshd_config',
line => "LogLevel ${almalinux_hardening::ssh_loglevel}",
match => '^(#|).*LogLevel.*.[A-Z]*.*$',
}
~> Service['sshd']
}
}
|