Skip to content
Snippets Groups Projects
Commit e6cefed4 authored by Jonathan Gazeley's avatar Jonathan Gazeley
Browse files

Change the fail to a warning if the FR version is not 3.x

parent 96058e56
No related branches found
No related tags found
No related merge requests found
......@@ -19,7 +19,9 @@ class freeradius (
$radacctdir = $freeradius::params::radacctdir,
) inherits freeradius::params {
validate_re($freeradius::fr_version, '^3', 'This module is only compatible with FreeRADIUS 3')
if $freeradius::fr_version !~ /^3/ {
notify { 'This module is only compatible with FreeRADIUS 3.': }
}
validate_re($log_destination, '^(files|syslog|stdout|stderr)$',
"log_destination value (${log_destination}) is not a valid value")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment