changeset 342:445aaaf228cc

Handle "mod_wsgi" not existing as a package/provides in CentOS 8
author IBBoard <dev@ibboard.co.uk>
date Tue, 23 Jun 2020 19:41:37 +0100
parents 3a1b19f6a054
children 0d263bcbbfe9
files manifests/templates.pp
diffstat 1 files changed, 4 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/manifests/templates.pp	Wed May 27 19:00:28 2020 +0100
+++ b/manifests/templates.pp	Tue Jun 23 19:41:37 2020 +0100
@@ -617,13 +617,17 @@
 	if versioncmp($operatingsystemrelease, '8') >= 0 {
 		# Apache::Mod doesn't map this correctly for CentOS 8 yet
 		$mod_wsgi_lib = 'mod_wsgi_python3.so'
+		# And mod_wsgi doesn't exist as a "provides" any more
+		$mod_wsgi_package = 'python3-mod_wsgi'
 	} else {
 		$mod_wsgi_lib = undef
+		$mod_wsgi_package = undef
 	}
 	apache::mod {
 		# mod_wsgi for Python support
 		'wsgi':
 		  lib => $mod_wsgi_lib,
+		  package => $mod_wsgi_package,
 	}
 
 	# Create Python virtualenvs for the dev site apps