Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Projets publics
puppet-freeradius
Commits
a34dc5f9
Commit
a34dc5f9
authored
Jun 15, 2016
by
Ross Williamson
Browse files
Fix compatibility with strict variable checking and version comparison on Puppet 4
parent
ba3ccd00
Changes
2
Hide whitespace changes
Inline
Side-by-side
manifests/init.pp
View file @
a34dc5f9
...
...
@@ -13,9 +13,7 @@ class freeradius (
$
preserve_mods
=
true
,
)
inherits
freeradius
::
params
{
if ($freeradius::fr_version != 3) {
fail('This module is only compatible with FreeRADIUS 3')
}
validate_re($freeradius::fr_version, '^3', 'This module is only compatible with FreeRADIUS 3')
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.')
...
...
manifests/params.pp
View file @
a34dc5f9
...
...
@@ -39,7 +39,7 @@ class freeradius::params {
}
#
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
}
else
{
$fr_version = $fr_guessversion
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment