From e6cefed49097c01ddaeb3db65d19f776b3817897 Mon Sep 17 00:00:00 2001
From: Jonathan Gazeley <jonathan.gazeley@bristol.ac.uk>
Date: Thu, 16 Mar 2017 10:13:32 +0000
Subject: [PATCH] Change the fail to a warning if the FR version is not 3.x

---
 manifests/init.pp | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/manifests/init.pp b/manifests/init.pp
index 8224e11..0d65893 100644
--- a/manifests/init.pp
+++ b/manifests/init.pp
@@ -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")
-- 
GitLab