Puppet Class: cis_security_hardening::rules::auditd_package

Defined in:
manifests/rules/auditd_package.pp

Summary

Ensure auditd is installed

Overview

auditd is the userspace component to the Linux Auditing System. It’s responsible for writing audit records to the disk.

Rationale: The capturing of system events provides system administrators with information to allow them to determine if unauthorized access to their system is occurring.

Examples:

class { 'cis_security_hardening::rules::auditd_package':
          enforce => true,
          packages => ['audit', 'audit-libs'],
}

Parameters:

  • enforce (Boolean) (defaults to: false)

    Sets rule enforcementen. If set to true, code will be exeuted to bring the system into a comliant state.

  • packages (Array) (defaults to: [])

    Packages for auditd to install



24
25
26
27
28
29
30
31
32
33
34
35
# File 'manifests/rules/auditd_package.pp', line 24

class cis_security_hardening::rules::auditd_package (
  Boolean $enforce = false,
  Array $packages  = [],
) {
  if $enforce {
    $packages.each |$pkg| {
      ensure_packages([$pkg], {
          ensure => installed,
      })
    }
  }
}