Commit c72073bf authored by Angel L. Mateo's avatar Angel L. Mateo
Browse files

Add parameter radacctdir to freeradius class

to be able to configure the path
parent f1be3793
...@@ -16,6 +16,7 @@ class freeradius ( ...@@ -16,6 +16,7 @@ class freeradius (
$preserve_mods = true, $preserve_mods = true,
$correct_escapes = true, $correct_escapes = true,
$manage_logpath = true, $manage_logpath = true,
$radacctdir = $freeradius::params::radacctdir,
) inherits freeradius::params { ) inherits freeradius::params {
validate_re($freeradius::fr_version, '^3', 'This module is only compatible with FreeRADIUS 3') validate_re($freeradius::fr_version, '^3', 'This module is only compatible with FreeRADIUS 3')
......
...@@ -143,4 +143,6 @@ class freeradius::params { ...@@ -143,4 +143,6 @@ class freeradius::params {
'Debian' => "\${raddbdir}", 'Debian' => "\${raddbdir}",
default => "\${localstatedir}/lib/radiusd", default => "\${localstatedir}/lib/radiusd",
} }
$radacctdir = "\${logdir}/radacct"
} }
...@@ -57,7 +57,7 @@ localstatedir = /var ...@@ -57,7 +57,7 @@ localstatedir = /var
sbindir = /usr/sbin sbindir = /usr/sbin
logdir = <%= @fr_logpath %> logdir = <%= @fr_logpath %>
raddbdir = <%= @fr_raddbdir %> raddbdir = <%= @fr_raddbdir %>
radacctdir = ${logdir}/radacct radacctdir = <%= @radacctdir %>
# #
# name of the running server. See also the "-n" command-line option. # name of the running server. See also the "-n" command-line option.
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment