Puppet Class: almalinux_hardening::services::chrony::service
- Defined in:
- manifests/services/chrony/service.pp
Summary
Ensure that chronyd is running under chrony user accountOverview
Puppet Module to perform AlmaLinux 8 OS Hardening with CIS benchmark. Copyright © 2022 Jonas Hügli
23 24 25 26 27 28 29 30 31 32 33 34 35 36 |
# File 'manifests/services/chrony/service.pp', line 23
class almalinux_hardening::services::chrony::service {
if $almalinux_hardening::enable_chrony_service {
file_line { 'chronyd_options':
ensure => 'present',
path => '/etc/sysconfig/chronyd',
line => 'OPTIONS="-u chrony"',
match => '^(#|).*OPTIONS.*=.*',
}
~> service { 'chronyd':
ensure => running,
enable => true,
}
}
}
|