From 1ac50df120236df2e5d8b0411bd59691b1743aa7 Mon Sep 17 00:00:00 2001
From: Jens Larsson <jens@nsc.liu.se>
Date: Mon, 10 May 2021 13:10:24 +0200
Subject: [PATCH] The tftp module needs to be aware of CentOS 7

---
 manifests/defaultroot.pp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/manifests/defaultroot.pp b/manifests/defaultroot.pp
index fc1357b..4ec076e 100644
--- a/manifests/defaultroot.pp
+++ b/manifests/defaultroot.pp
@@ -12,7 +12,7 @@ class tftp::defaultroot
     $osdist = "${::operatingsystem}-${::operatingsystemrelease}"
     case $osdist
     {
-	/^(CentOS|Redhat|Scientific)-6(\.|$)/: {
+	/^(CentOS|Redhat|Scientific)-(6|7)(\.|$)/: {
 	    $tftproot = '/var/lib/tftpboot'
 	    file {
 		'/tftpboot':
-- 
GitLab