Skip to content
Snippets Groups Projects
Commit a34dc5f9 authored by Ross Williamson's avatar Ross Williamson
Browse files

Fix compatibility with strict variable checking and version comparison on Puppet 4

parent ba3ccd00
No related branches found
No related tags found
No related merge requests found
...@@ -13,9 +13,7 @@ class freeradius ( ...@@ -13,9 +13,7 @@ class freeradius (
$preserve_mods = true, $preserve_mods = true,
) inherits freeradius::params { ) inherits freeradius::params {
if ($freeradius::fr_version != 3) { validate_re($freeradius::fr_version, '^3', 'This module is only compatible with FreeRADIUS 3')
fail('This module is only compatible with FreeRADIUS 3')
}
if $control_socket == true { if $control_socket == true {
warning('Use of the control_socket parameter in the freeradius class is deprecated. Please use the freeradius::control_socket class instead.') warning('Use of the control_socket parameter in the freeradius class is deprecated. Please use the freeradius::control_socket class instead.')
......
...@@ -39,7 +39,7 @@ class freeradius::params { ...@@ -39,7 +39,7 @@ class freeradius::params {
} }
# Use the FR version fact if defined, otherwise use our best estimate from above # Use the FR version fact if defined, otherwise use our best estimate from above
if $::freeradius_maj_version { if getvar('::freeradius_maj_version') {
$fr_version = $::freeradius_maj_version $fr_version = $::freeradius_maj_version
} else { } else {
$fr_version = $fr_guessversion $fr_version = $fr_guessversion
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment