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
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Projets publics
puppet-freeradius
Commits
6aa25967
Commit
6aa25967
authored
10 years ago
by
Jonathan Gazeley
Browse files
Options
Downloads
Patches
Plain Diff
Split out control_socket into its own class and allow the ability to set ro/rw
parent
6a44647b
No related branches found
No related tags found
No related merge requests found
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
README.md
+9
-0
9 additions, 0 deletions
README.md
manifests/control_socket.pp
+15
-0
15 additions, 0 deletions
manifests/control_socket.pp
manifests/init.pp
+4
-7
4 additions, 7 deletions
manifests/init.pp
templates/sites-enabled/control-socket.erb
+1
-1
1 addition, 1 deletion
templates/sites-enabled/control-socket.erb
with
29 additions
and
8 deletions
README.md
+
9
−
0
View file @
6aa25967
...
...
@@ -8,6 +8,7 @@
*
[
Classes
](
#classes
)
*
[
`freeradius`
](
#freeradius
)
*
[
`freeradius::status_server`
](
#freeradiusstatus_server
)
*
[
`freeradius::control_socket`
](
#freeradiuscontrol_socket
)
*
[
Resources
](
#resources
)
*
[
`freeradius::attr`
](
#freeradiusattr
)
*
[
`freeradius::blank`
](
#freeradiusblank
)
...
...
@@ -126,6 +127,14 @@ Whether to enable the status server. Default: `true`
}
```
#### `freeradius::control_socket`
The
`freeradius::control_socket`
class enables the control socket which can be used with
[
RADMIN
](
http://freeradius.org/radiusd/man/radmin.html
)
.
To remove the control socket, do not include this class and the socket will be removed.
##### `mode`
Whether the control socket should be read-only or read-write. Choose from
`ro`
,
`rw`
. Default:
`ro`
.
### Resources
#### `freeradius::attr`
...
...
This diff is collapsed.
Click to expand it.
manifests/control_socket.pp
0 → 100644
+
15
−
0
View file @
6aa25967
# Configure the FreeRADIUS control_socket
class
freeradius::control_socket
(
$mode
=
'ro'
,
)
{
$fr_user
=
$::freeradius::params::fr_user
$fr_group
=
$::freeradius::params::fr_group
unless
$mode
in
[
'ro'
,
'rw'
]
{
fail
(
'$mode must be ro or rw'
)
}
freeradius::site
{
'control-socket'
:
content
=>
template
(
'freeradius/sites-enabled/control-socket.erb'
),
}
}
This diff is collapsed.
Click to expand it.
manifests/init.pp
+
4
−
7
View file @
6aa25967
...
...
@@ -12,6 +12,10 @@ class freeradius (
$syslog
=
false
,
)
inherits
freeradius::params
{
if
$control_socket
==
true
{
warn
(
'Use of the control_socket parameter in the freeradius class is deprecated. Please use the freeradius::control_socket class instead.'
)
}
file
{
'radiusd.conf'
:
name
=>
"
${freeradius::fr_basepath}
/radiusd.conf"
,
mode
=>
'0640'
,
...
...
@@ -187,13 +191,6 @@ class freeradius (
}
}
# Install a couple of virtual servers needed on all FR installations
if
$control_socket
==
true
{
freeradius::site
{
'control-socket'
:
content
=>
template
(
'freeradius/sites-enabled/control-socket.erb'
),
}
}
# Make the radius log dir traversable
file
{
[
$freeradius::fr_logpath
,
...
...
This diff is collapsed.
Click to expand it.
templates/sites-enabled/control-socket.erb
+
1
−
1
View file @
6aa25967
...
...
@@ -69,5 +69,5 @@ listen {
# ro = read only access (default)
# rw = read/write access.
#
mode =
rw
mode =
<%=
@mode
%>
}
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