Skip to content

Commit

Permalink
log_dir
Browse files Browse the repository at this point in the history
  • Loading branch information
jordiprats committed Oct 16, 2019
1 parent 5f83bb0 commit d1ae6b1
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 2 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# CHANGELOG

## 0.2.5

* Added auditd's log directory under puppet management

## 0.2.4

* Added support for RHEL 8
Expand Down
10 changes: 10 additions & 0 deletions manifests/init.pp
Original file line number Diff line number Diff line change
Expand Up @@ -30,12 +30,22 @@
$flush = $audit::params::flush_default,
$manage_auditconf = true,
$auditd_specifics = true,
$log_dir = '/var/log/audit',
) inherits audit::params {

package { $audit::params::pkg_audit:
ensure => 'installed',
}

file { $log_dir:
ensure => 'present',
owner => 'root',
group => 'root',
mode => '0750',
require => Package[$audit::params::pkg_audit],
before => File['/etc/audit/auditd.conf']
}

if($manage_auditconf)
{
file { '/etc/audit/auditd.conf':
Expand Down
2 changes: 1 addition & 1 deletion metadata.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "eyp-audit",
"version": "0.2.4",
"version": "0.2.5",
"author": "eyp",
"summary": "auditd management",
"license": "Apache-2.0",
Expand Down
2 changes: 1 addition & 1 deletion templates/auditdconf.erb
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
# This file controls the configuration of the audit daemon
#

log_file = /var/log/audit/audit.log
log_file = <%= @log_dir %>/audit.log
log_group = root
log_format = <%= @log_format %>
flush = <%= @flush %>
Expand Down

0 comments on commit d1ae6b1

Please sign in to comment.