Commit 0e7286b0 authored by Jonathan Gazeley's avatar Jonathan Gazeley
Browse files

Make preservation of modules optional

parent f6b20ef4
...@@ -87,6 +87,9 @@ Install support for MySQL. Note this only installs the package. Use `freeradius: ...@@ -87,6 +87,9 @@ Install support for MySQL. Note this only installs the package. Use `freeradius:
##### `perl_support` ##### `perl_support`
Install support for Perl. Default: `false` Install support for Perl. Default: `false`
##### `preserve_mods`
Leave recommended stock modules enabled. Default: `true`
##### `utils_support` ##### `utils_support`
Install FreeRADIUS utils. Default: `false` Install FreeRADIUS utils. Default: `false`
......
...@@ -10,6 +10,7 @@ class freeradius ( ...@@ -10,6 +10,7 @@ class freeradius (
$wpa_supplicant = false, $wpa_supplicant = false,
$winbind_support = false, $winbind_support = false,
$syslog = false, $syslog = false,
$preserve_mods = true,
) inherits freeradius::params { ) inherits freeradius::params {
if ($freeradius::fr_version != 3) { if ($freeradius::fr_version != 3) {
...@@ -75,37 +76,39 @@ class freeradius ( ...@@ -75,37 +76,39 @@ class freeradius (
} }
# Preserve some stock modules # Preserve some stock modules
freeradius::module { [ if ($preserve_mods) {
'always', freeradius::module { [
'cache_eap', 'always',
'chap', 'cache_eap',
'detail', 'chap',
'detail.log', 'detail',
'dhcp', 'detail.log',
'digest', 'dhcp',
'dynamic_clients', 'digest',
'echo', 'dynamic_clients',
'exec', 'echo',
'expiration', 'exec',
'expr', 'expiration',
'files', 'expr',
'linelog', 'files',
'logintime', 'linelog',
'mschap', 'logintime',
'ntlm_auth', 'mschap',
'pap', 'ntlm_auth',
'passwd', 'pap',
'preprocess', 'passwd',
'radutmp', 'preprocess',
'realm', 'radutmp',
'replicate', 'realm',
'soh', 'replicate',
'sradutmp', 'soh',
'unix', 'sradutmp',
'unpack', 'unix',
'utf8', 'unpack',
]: 'utf8',
preserve => true, ]:
preserve => true,
}
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment