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:
##### `perl_support`
Install support for Perl. Default: `false`
##### `preserve_mods`
Leave recommended stock modules enabled. Default: `true`
##### `utils_support`
Install FreeRADIUS utils. Default: `false`
......
......@@ -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,
}
}
......
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