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,6 +76,7 @@ class freeradius (
}
# Preserve some stock modules
if ($preserve_mods) {
freeradius::module { [
'always',
'cache_eap',
......@@ -107,6 +109,7 @@ class freeradius (
]:
preserve => true,
}
}
# Set up concat policy file, as there is only one global policy
......
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