Skip to content
Snippets Groups Projects
Commit f1be3793 authored by Angel L. Mateo's avatar Angel L. Mateo
Browse files

Add parameter manage_logpath

This parameter controls whether freeradius module should handle the
creation/mode of log files.
parent 19967729
No related branches found
No related tags found
No related merge requests found
......@@ -15,6 +15,7 @@ class freeradius (
$log_auth = 'no',
$preserve_mods = true,
$correct_escapes = true,
$manage_logpath = true,
) inherits freeradius::params {
validate_re($freeradius::fr_version, '^3', 'This module is only compatible with FreeRADIUS 3')
......@@ -276,6 +277,7 @@ class freeradius (
}
}
if $manage_logpath {
# Make the radius log dir traversable
file { [
$freeradius::fr_logpath,
......@@ -291,6 +293,7 @@ class freeradius (
seltype => 'radiusd_log_t',
require => [Package[$freeradius::fr_package], User[$freeradius::fr_user], Group[$freeradius::fr_group]],
}
}
logrotate::rule { 'radacct':
path => "${freeradius::fr_logpath}/radacct/*/*.log",
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment