Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Projets publics
puppet-freeradius
Commits
deb2fe6c
Commit
deb2fe6c
authored
Oct 30, 2014
by
Jonathan Gazeley
Browse files
Winbind support is now an optional component that can be enabled
parent
a2bbfb76
Changes
3
Hide whitespace changes
Inline
Side-by-side
README.md
View file @
deb2fe6c
...
...
@@ -50,16 +50,18 @@ of the global settings to increase flexibility. Patches are welcome.
*
`utils_support`
Install FreeRADIUS utils. Default:
`false`
*
`ldap_support`
Install support for LDAP. Default:
`false`
*
`wpa_supplicant`
. Install wpa_supplicant utility. Default:
`false`
*
`winbind_support`
. Add the radius user to the winbind privileged group. You must install winbind separately. Default:
`false`
.
```
puppet
class
{
'freeradius'
:
control_socket
=>
true
,
max_requests
=>
4096
,
max_servers
=>
4096
,
mysql_support
=>
true
,
perl_support
=>
true
,
utils_support
=>
true
,
wpa_supplicant
=>
true
,
control_socket
=>
true
,
max_requests
=>
4096
,
max_servers
=>
4096
,
mysql_support
=>
true
,
perl_support
=>
true
,
utils_support
=>
true
,
wpa_supplicant
=>
true
,
winbind_support
=>
true
,
}
```
...
...
manifests/init.pp
View file @
deb2fe6c
# Base class to install FreeRADIUS
class
freeradius
(
$control_socket
=
false
,
$max_servers
=
'4096'
,
$max_requests
=
'4096'
,
$mysql_support
=
false
,
$perl_support
=
false
,
$utils_support
=
false
,
$ldap_support
=
false
,
$wpa_supplicant
=
false
,
$control_socket
=
false
,
$max_servers
=
'4096'
,
$max_requests
=
'4096'
,
$mysql_support
=
false
,
$perl_support
=
false
,
$utils_support
=
false
,
$ldap_support
=
false
,
$wpa_supplicant
=
false
,
$winbind_support
=
false
,
)
inherits
freeradius::params
{
include
samba
file
{
'radiusd.conf'
:
name
=>
"
${fr_basepath}
/radiusd.conf"
,
mode
=>
'0640'
,
...
...
@@ -122,7 +121,6 @@ class freeradius (
File
[
'radiusd.conf'
],
User
[
'radiusd'
],
Package
[
$fr_package
],
Service
[
'winbind'
]
],
enable
=>
true
,
hasstatus
=>
true
,
...
...
@@ -134,8 +132,11 @@ class freeradius (
ensure
=>
present
,
uid
=>
'95'
,
gid
=>
'radiusd'
,
groups
=>
'wbpriv'
,
require
=>
Package
[
$fr_package
,
'samba-winbind'
],
groups
=>
$winbind_support
?
{
true
=>
$fr_wbpriv_user
,
default
=>
undef
,
},
require
=>
Package
[
$fr_package
],
}
# Install a few modules required on all FR installations
...
...
manifests/params.pp
View file @
deb2fe6c
...
...
@@ -49,4 +49,11 @@ class freeradius::params {
'Debian' => 'freerad',
default => 'radiusd',
}
#
Privileged
winbind
user
$f
r_wbpriv_user
=
$::
osfamily
?
{
'RedHat' => 'wbpriv',
'Debian' => 'winbindd_priv',
default => 'wbpriv',
}
}
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment