Puppet Class: almalinux_hardening::services::ssh::max_startups
- Defined in:
- manifests/services/ssh/max_startups.pp
Summary
Ensure SSH MaxStartups is configuredOverview
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/max_startups.pp', line 24
class almalinux_hardening::services::ssh::max_startups inherits almalinux_hardening::services::ssh::service {
if $almalinux_hardening::enable_ssh_max_startups {
file_line { 'ssh_max_startups':
ensure => 'present',
path => '/etc/ssh/sshd_config',
line => "MaxStartups ${almalinux_hardening::ssh_max_startups}",
match => '^(#|).*MaxStartups.*.[0-9:]*.*$',
}
~> Service['sshd']
}
}
|