Puppet Class: cis_security_hardening::rules::rsyslog_service
- Defined in:
- manifests/rules/rsyslog_service.pp
Summary
Ensure rsyslog Service is enabledOverview
Once the rsyslog package is installed it needs to be activated.
Rationale: If the rsyslog service is not activated the system may default to the syslogd service or lack logging instead.
18 19 20 21 22 23 24 25 26 27 28 |
# File 'manifests/rules/rsyslog_service.pp', line 18
class cis_security_hardening::rules::rsyslog_service (
Boolean $enforce = false,
) {
if $enforce {
ensure_resource('service', ['rsyslog'], {
ensure => running,
enable => true,
require => Package['rsyslog'],
})
}
}
|