Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Projets publics
puppet-freeradius
Commits
0bc89073
Commit
0bc89073
authored
Jan 24, 2017
by
Angel L. Mateo
Browse files
Adds option to configure destination of logs
Adds the option "log_destination" to configure the destination of log messages.
parent
2b9bc773
Changes
3
Hide whitespace changes
Inline
Side-by-side
README.md
View file @
0bc89073
...
...
@@ -107,6 +107,9 @@ Install wpa_supplicant utility. Default: `false`
##### `winbind_support`
Add the radius user to the winbind privileged group. You must install winbind separately. Default:
`false`
.
##### `log_destination`
Configure destination of log messages. Valid values are
`files`
,
`syslog`
,
`stdout`
and
`stderr`
. Default:
`files`
.
##### `syslog`
Add a syslog rule (using the
`saz/rsyslog`
module). Default:
`false`
.
...
...
manifests/init.pp
View file @
0bc89073
...
...
@@ -10,6 +10,7 @@ class freeradius (
$krb5_support
=
false
,
$wpa_supplicant
=
false
,
$winbind_support
=
false
,
$log_destination
=
'files'
,
$syslog
=
false
,
$log_auth
=
'no'
,
$preserve_mods
=
true
,
...
...
@@ -17,6 +18,9 @@ class freeradius (
validate_re
(
$freeradius::fr_version
,
'^3'
,
'This module is only compatible with FreeRADIUS 3'
)
validate_re
(
$log_destination
,
'^(files|syslog|stdout|stderr)$'
,
"log_destination value (
${log_destination}
) is not a valid value"
)
if
$control_socket
==
true
{
warning
(
'Use of the control_socket parameter in the freeradius class is deprecated. Please use the freeradius::control_socket class instead.'
)
}
...
...
templates/radiusd.conf.erb
View file @
0bc89073
...
...
@@ -243,7 +243,7 @@ log {
# The command-line option "-X" over-rides this option, and forces
# logging to go to stdout.
#
destination =
files
destination =
<%=
@log_destination
%>
#
# Highlight important messages sent to stderr and stdout.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment