- Overview
- Module Description - What the module does and why it is useful
- Setup - The basics of getting started with auditd
- Usage - Configuration options and additional functionality
- Reference - An under-the-hood peek at what the module is doing and how
- Limitations - OS compatibility, etc.
- Development - Guide for contributing to the module
- Acknowledgements
This module will install a basic template for auditd rules.
This module edits the default /etc/audit/auditd.conf, adds a /etc/audit/rules.d/audit.rules file to the server and restarts auditd.
If you wish to use your own ruleset, it must be passed to the auditd
classes $auditd_rules parameter as an array of rules.
This ruleset will over-write the default rules, so must be the full ruleset you intend to implement. E.g.:
class {'auditd':
auditd_rules => [
'-a always,exit -F arch=b32 -S adjtimex -S settimeofday -k time-change',
'-w /etc/passwd -p wa -k identity',
],
}
Config values for the auditd.conf
file can be passed in as a hash to the $auditd_conf parameter, where the key is the setting name and the value is the value.
This will not completely over-write the default ruleset, only add new settings to the default list, or override values for existing settings.
The default list can be found in the in-module Hiera data.
E.g.
class {'auditd':
auditd_conf => {
'log_file' => '/var/log/some-other-auditd.log',
}
}
- /etc/audit/auditd.conf
- /etc/audit/rules.d/audit.rules
- RPM Package audit will be installed
- Service auditd will be turned on and started
Install module with sudo puppet module install auditd
or use r10k.
Use the following syntax to get this module working:
include auditd
or
class { 'auditd': }
auditd
: Installs and configures auditd on your server.
auditd::config
: Configures the module.auditd::install
: Installs auditd package on your server.auditd::service
: Configures auditd service.
This module has only been tested on RedHat,CentOS and it derivatives. All other distributions are not supported.
This module is public and can be found on githubhere
This module is based upon the auditd module by Luther Barnum, which can be found at https://github.com/lgbarn/auditd.