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
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -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")