auditd: audit daemonauditd::audisp: audit event dispatcher
auditd::config: auditd configurationauditd::package: auditd package managementauditd::service: auditd service management
auditd::plugin: Create plugin filesauditd::rule: Creates auditd rules
Auditd::Audisp::Conf: audispd.conf configuration file parametersAuditd::Conf: auditd.conf configuration file parametersAuditd::Plugins: auditd plugin parametersAuditd::Rules: auditd rule parameters
audit daemon
The following parameters are available in the auditd class:
buffer_sizefailure_modeimmutabledirmodeownergroupconfigconfig_pathconfig_modeconfig_ownerconfig_grouppackage_namepackage_ensurepackage_manageservice_enableservice_nameservice_ensureservice_manageservice_overrideplugin_dirplugin_dir_modeplugin_dir_ownerplugin_dir_grouppluginsrules_dirrules_dir_moderules_dir_ownerrules_dir_grouprules_filerules_file_moderules_file_ownerrules_file_grouprules
Data type: Integer
The buffer size to use
Default value: 8192
Data type: Integer
The failure mode (defaults to printing failure message)
Default value: 1
Data type: Boolean
Set if the configuration should be immutable
Default value: false
Data type: Stdlib::Absolutepath
The auditd configuration directory path (e.g. /etc/audit)
Default value: '/etc/audit'
Data type: Stdlib::Filemode
The auditd configuration directory mode
Default value: '0750'
Data type: Variant[String[1], Integer]
The auditd configuration directory owner
Default value: 0
Data type: Variant[String[1], Integer]
The auditd configuration directory group
Default value: 0
Data type: Auditd::Conf
auditd.conf configuration hash
Default value: {}
Data type: Stdlib::Absolutepath
auditd.conf configuration filepath (e.g. /etc/audit/auditd.conf)
Default value: '/etc/audit/auditd.conf'
Data type: Stdlib::Filemode
The configurtion file mode
Default value: '0600'
Data type: Variant[String[1], Integer]
The configurtion file mode owner
Default value: 0
Data type: Variant[String[1], Integer]
The configurtion file mode group
Default value: 0
Data type: String[1]
The package name to use
Default value: 'auditd'
Data type: String
The package state to set
Default value: 'installed'
Data type: Boolean
If the auditd package should be managed
Default value: true
Data type: Boolean
The service enable state
Default value: true
Data type: String[1]
The service name to use
Default value: 'auditd'
Data type: Stdlib::Ensure::Service
The service ensure state
Default value: 'running'
Data type: Boolean
If the auditd service should be managed
Default value: true
Data type: Optional[String]
auditd service override content
Default value: undef
Data type: Stdlib::Absolutepath
The plugin directory path to manage
Default value: '/etc/audit/plugins.d'
Data type: Stdlib::Filemode
The plugin directory mode
Default value: '0750'
Data type: Variant[String[1], Integer]
The plugin directory owner
Default value: 0
Data type: Variant[String[1], Integer]
The plugin directory group
Default value: 0
Data type: Optional[Hash[String, Auditd::Plugins]]
Hash of auditd plugin configuration files to create
Default value: {}
Data type: Stdlib::Absolutepath
The rules directory path to manage
Default value: '/etc/audit/rules.d'
Data type: Stdlib::Filemode
The rules directory mode
Default value: '0750'
Data type: Variant[String[1], Integer]
The rules directory owner
Default value: 0
Data type: Variant[String[1], Integer]
The rules directory group
Default value: 0
Data type: Stdlib::Absolutepath
The rules filepath
Default value: '/etc/audit/rules.d/audit.rules'
Data type: Stdlib::Filemode
The rules file mode
Default value: '0600'
Data type: Variant[String[1], Integer]
The rules file owner
Default value: 0
Data type: Variant[String[1], Integer]
The rules file group
Default value: 0
Data type: Optional[Hash[String, Auditd::Rules]]
Hash of auditd rules to set
Default value: {}
audit event dispatcher
The following parameters are available in the auditd::audisp class:
dirmodeownergroupconfigconfig_pathconfig_modeconfig_ownerconfig_grouppackage_namepackage_ensurepackage_manageplugin_dirplugin_dir_modeplugin_dir_ownerplugin_dir_groupplugins
Data type: Stdlib::Absolutepath
The auditd configuration directory path
Default value: '/etc/audisp'
Data type: Stdlib::Filemode
The auditd configuration directory mode
Default value: '0750'
Data type: Variant[String[1], Integer]
The auditd configuration directory owner
Default value: 0
Data type: Variant[String[1], Integer]
The auditd configuration directory group
Default value: 0
Data type: Auditd::Audisp::Conf
audispd.conf configuration hash
Default value: {}
Data type: Stdlib::Absolutepath
audispd.conf file path
Default value: '/etc/audisp/audispd.conf'
Data type: Stdlib::Filemode
audispd.conf file mode
Default value: '0600'
Data type: Variant[String[1], Integer]
audispd.conf file owner
Default value: 0
Data type: Variant[String[1], Integer]
audispd.conf file group
Default value: 0
Data type: String[1]
The audisp plugins package name
Default value: 'audispd-plugins'
Data type: String
The package state to set
Default value: 'installed'
Data type: Boolean
If the audisp plugin package should be managed
Default value: true
Data type: Stdlib::Absolutepath
The plugin directory path to manage
Default value: '/etc/audisp/plugins.d'
Data type: Stdlib::Filemode
The plugin directory mode
Default value: '0750'
Data type: Variant[String[1], Integer]
The plugin directory owner
Default value: 0
Data type: Variant[String[1], Integer]
The plugin directory group
Default value: 0
Data type: Optional[Hash[String, Auditd::Plugins]]
Hash of audisp plugin configuration files to create
Default value: {}
Create plugin files
The following parameters are available in the auditd::plugin defined type:
Data type: Enum['yes', 'no']
Set the plugin active state.
Default value: 'yes'
Data type: Enum['in', 'out']
Give a clue to the event dispatcher about which direction events flow.
Default value: 'out'
Data type: Variant[Stdlib::Absolutepath, String]
The absolute path to the plugin executable.
Data type: Enum['builtin', 'always']
Tells the dispatcher how the plugin wants to be run.
Default value: 'always'
Data type: Optional[String]
Pass arguments to the child program.
Default value: undef
Data type: Enum['binary', 'string']
Binary or string dispatcher options.
Default value: 'string'
Data type: Enum['auditd', 'audisp']
The plugin type
Default value: 'auditd'
Data type: Stdlib::Filemode
The file mode to apply
Default value: '0600'
Data type: Variant[String, Integer]
The file owner to set
Default value: 0
Data type: Variant[String, Integer]
The file group to set
Default value: 0
Creates auditd rules
The following parameters are available in the auditd::rule defined type:
Data type: String
The rule content
Default value: ''
Data type: Integer[1, 1000]
The rule priority order (between 1 and 1000)
Default value: 10
audispd.conf configuration file parameters
Alias of
Struct[{
Optional['q_depth'] => Integer,
Optional['overflow_action'] => Enum['ignore', 'IGNORE', 'syslog', 'SYSLOG', 'suspend', 'SUSPEND', 'single', 'SINGLE', 'halt', 'HALT'],
Optional['priority_boost'] => Integer[0],
Optional['max_restarts'] => Integer[0],
Optional['name_format'] => Enum['none', 'NONE', 'hostname', 'HOSTNAME', 'fqd', 'FQD', 'numeric', 'NUMERIC', 'user', 'USER'],
Optional['name'] => String,
Optional['plugin_dir'] => Stdlib::Absolutepath,
}]auditd.conf configuration file parameters
Alias of
Struct[{
Optional['local_events'] => Enum['yes', 'no'],
Optional['log_file'] => Stdlib::Absolutepath,
Optional['write_logs'] => Enum['yes', 'no'],
Optional['log_format'] => Enum['raw', 'RAW', 'enriched', 'ENRICHED'],
Optional['log_group'] => Variant[Integer, String[1]],
Optional['priority_boost'] => Integer[0],
Optional['flush'] => Enum['none', 'NONE', 'incremental', 'INCREMENTAL', 'incremental_async', 'INCREMENTAL_ASYNC', 'data', 'DATA', 'sync', 'SYNC'],
Optional['freq'] => Integer[0],
Optional['dispatcher'] => String,
Optional['disp_qos'] => Enum['lossy', 'LOSSY', 'lossless', 'LOSSLESS'],
Optional['num_logs'] => Integer[0, 999],
Optional['name_format'] => Enum['none', 'NONE', 'hostname', 'HOSTNAME', 'fqd', 'FQD', 'numeric', 'NUMERIC', 'user', 'USER'],
Optional['name'] => String,
Optional['max_log_file'] => Integer,
Optional['max_log_file_action'] => Enum['ignore', 'IGNORE', 'syslog', 'SYSLOG', 'suspend', 'SUSPEND', 'rotate', 'ROTATE', 'keep_logs', 'KEEP_LOGS'],
Optional['verify_email'] => Enum['yes', 'no'],
Optional['action_mail_acct'] => Variant[String, Stdlib::Email],
Optional['space_left'] => Integer,
Optional['space_left_action'] => Enum['ignore', 'IGNORE', 'syslog', 'SYSLOG', 'rotate', 'ROTATE', 'email', 'EMAIL', 'exec', 'EXEC', 'suspend', 'SUSPEND', 'single', 'SINGLE', 'halt', 'HALT'],
Optional['admin_space_left'] => Variant[Integer, String],
Optional['admin_space_left_action'] => Enum['ignore', 'IGNORE', 'syslog', 'SYSLOG', 'rotate', 'ROTATE', 'email', 'EMAIL', 'exec', 'EXEC', 'suspend', 'SUSPEND', 'single', 'SINGLE', 'halt', 'HALT'],
Optional['disk_full_action'] => Enum['ignore', 'IGNORE', 'syslog', 'SYSLOG', 'rotate', 'ROTATE', 'exec', 'EXEC', 'suspend', 'SUSPEND', 'single', 'SINGLE', 'halt', 'HALT'],
Optional['disk_error_action'] => Enum['ignore', 'IGNORE', 'syslog', 'SYSLOG', 'exec', 'EXEC', 'suspend', 'SUSPEND', 'single', 'SINGLE', 'halt', 'HALT'],
Optional['tcp_listen_port'] => Integer[1,65535],
Optional['tcp_listen_queue'] => Integer,
Optional['tcp_max_per_addr'] => Integer[1,1024],
Optional['use_libwrap'] => Enum['yes', 'no'],
Optional['tcp_client_ports'] => Variant[Integer, String],
Optional['tcp_client_max_idle'] => Integer,
Optional['transport'] => Enum['tcp', 'TCP', 'krb5', 'KRB5'],
Optional['enable_krb5'] => Enum['yes', 'no'],
Optional['krb5_principal'] => String,
Optional['krb5_key_file'] => Stdlib::Absolutepath,
Optional['distribute_network'] => Enum['yes', 'no'],
Optional['q_depth'] => Integer,
Optional['overflow_action'] => Enum['ignore', 'IGNORE', 'syslog', 'SYSLOG', 'suspend', 'SUSPEND', 'single', 'SINGLE', 'halt', 'HALT'],
Optional['max_restarts'] => Integer[0],
Optional['plugin_dir'] => Stdlib::Absolutepath,
Optional['end_of_event_timeout'] => Integer[0],
}]auditd plugin parameters
Alias of
Struct[{
Optional['active'] => Enum['yes', 'no'],
Optional['direction'] => Enum['in', 'out'],
'path' => Variant[Stdlib::Absolutepath, String],
Optional['type'] => Enum['builtin', 'always'],
Optional['args'] => String,
Optional['format'] => Enum['binary', 'string'],
Optional['plugin_type'] => Enum['auditd', 'audisp'],
Optional['mode'] => Stdlib::Filemode,
Optional['owner'] => Variant[String, Integer],
Optional['group'] => Variant[String, Integer],
}]auditd rule parameters
Alias of
Struct[{
Optional['content'] => String,
Optional['order'] => Integer[1, 999],
}]