From 6ecb738ff38ce90324535f2bcd686d694e30b365 Mon Sep 17 00:00:00 2001
From: Thomas Bellman <bellman@nsc.liu.se>
Date: Fri, 19 Nov 2021 10:29:42 +0100
Subject: [PATCH] Dependency fix in apache::listen::no_global_listen.

We were missing a dependency on the httpd package being installed,
and could thus try to comment out Listen directive(s) in httpd.conf
before the file existed.  Fix this.
---
 manifests/listen.pp | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/manifests/listen.pp b/manifests/listen.pp
index 3ed4d18..a278be2 100644
--- a/manifests/listen.pp
+++ b/manifests/listen.pp
@@ -50,6 +50,7 @@ class apache::listen::no_global_listen
 	'apache::listen::no_global_listen':
 	    file => $apache::configfile,
 	    pattern => '^\s*Listen(\s|$).*$',
-	    comment => '##--';
+	    comment => '##--',
+	    require => Class[apache::base];
     }
 }
-- 
GitLab