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