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
......@@ -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")
......
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