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
0e7286b0
Commit
0e7286b0
authored
Mar 02, 2016
by
Jonathan Gazeley
Browse files
Make preservation of modules optional
parent
f6b20ef4
Changes
2
Hide whitespace changes
Inline
Side-by-side
README.md
View file @
0e7286b0
...
...
@@ -87,6 +87,9 @@ Install support for MySQL. Note this only installs the package. Use `freeradius:
##### `perl_support`
Install support for Perl. Default:
`false`
##### `preserve_mods`
Leave recommended stock modules enabled. Default:
`true`
##### `utils_support`
Install FreeRADIUS utils. Default:
`false`
...
...
manifests/init.pp
View file @
0e7286b0
...
...
@@ -10,6 +10,7 @@ class freeradius (
$wpa_supplicant
=
false
,
$winbind_support
=
false
,
$syslog
=
false
,
$preserve_mods
=
true
,
)
inherits
freeradius::params
{
if
(
$freeradius::fr_version
!=
3
)
{
...
...
@@ -75,37 +76,39 @@ class freeradius (
}
# Preserve some stock modules
freeradius::module
{
[
'always'
,
'cache_eap'
,
'chap'
,
'detail'
,
'detail.log'
,
'dhcp'
,
'digest'
,
'dynamic_clients'
,
'echo'
,
'exec'
,
'expiration'
,
'expr'
,
'files'
,
'linelog'
,
'logintime'
,
'mschap'
,
'ntlm_auth'
,
'pap'
,
'passwd'
,
'preprocess'
,
'radutmp'
,
'realm'
,
'replicate'
,
'soh'
,
'sradutmp'
,
'unix'
,
'unpack'
,
'utf8'
,
]:
preserve
=>
true
,
if
(
$preserve_mods
)
{
freeradius::module
{
[
'always'
,
'cache_eap'
,
'chap'
,
'detail'
,
'detail.log'
,
'dhcp'
,
'digest'
,
'dynamic_clients'
,
'echo'
,
'exec'
,
'expiration'
,
'expr'
,
'files'
,
'linelog'
,
'logintime'
,
'mschap'
,
'ntlm_auth'
,
'pap'
,
'passwd'
,
'preprocess'
,
'radutmp'
,
'realm'
,
'replicate'
,
'soh'
,
'sradutmp'
,
'unix'
,
'unpack'
,
'utf8'
,
]:
preserve
=>
true
,
}
}
...
...
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