Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
puppet-freeradius
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Projets publics
puppet-freeradius
Commits
1ada5b7b
Commit
1ada5b7b
authored
Feb 13, 2017
by
Jonathan
Committed by
GitHub
Feb 13, 2017
Browse files
Options
Downloads
Plain Diff
Merge pull request #75 from amateo/feature/add_params
Add parameters to freeradius class
parents
19967729
c72073bf
No related branches found
No related tags found
No related merge requests found
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
manifests/init.pp
+17
-13
17 additions, 13 deletions
manifests/init.pp
manifests/params.pp
+2
-0
2 additions, 0 deletions
manifests/params.pp
templates/radiusd.conf.erb
+1
-1
1 addition, 1 deletion
templates/radiusd.conf.erb
with
20 additions
and
14 deletions
manifests/init.pp
+
17
−
13
View file @
1ada5b7b
...
...
@@ -15,6 +15,8 @@ class freeradius (
$log_auth
=
'no'
,
$preserve_mods
=
true
,
$correct_escapes
=
true
,
$manage_logpath
=
true
,
$radacctdir
=
$freeradius::params::radacctdir
,
)
inherits
freeradius::params
{
validate_re
(
$freeradius::fr_version
,
'^3'
,
'This module is only compatible with FreeRADIUS 3'
)
...
...
@@ -276,6 +278,7 @@ class freeradius (
}
}
if
$manage_logpath
{
# Make the radius log dir traversable
file
{
[
$freeradius::fr_logpath
,
...
...
@@ -291,6 +294,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"
,
...
...
This diff is collapsed.
Click to expand it.
manifests/params.pp
+
2
−
0
View file @
1ada5b7b
...
...
@@ -143,4 +143,6 @@ class freeradius::params {
'Debian'
=>
"
\$
{raddbdir}"
,
default
=>
"
\$
{localstatedir}/lib/radiusd"
,
}
$radacctdir
=
"
\$
{logdir}/radacct"
}
This diff is collapsed.
Click to expand it.
templates/radiusd.conf.erb
+
1
−
1
View file @
1ada5b7b
...
...
@@ -57,7 +57,7 @@ localstatedir = /var
sbindir = /usr/sbin
logdir =
<%=
@fr_logpath
%>
raddbdir =
<%=
@fr_raddbdir
%>
radacctdir =
${logdir}/
radacct
radacctdir =
<%=
@
radacct
dir
%>
#
# name of the running server. See also the "-n" command-line option.
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment