diff manifests/templates.pp @ 418:dd12bb713260

Fix mod_wsgi package install on CentOS
author IBBoard <dev@ibboard.co.uk>
date Sat, 08 Oct 2022 15:24:44 +0100
parents ebf985c99a57
children 0c627ff3a7c3
line wrap: on
line diff
--- a/manifests/templates.pp	Sat Oct 08 14:35:56 2022 +0100
+++ b/manifests/templates.pp	Sat Oct 08 15:24:44 2022 +0100
@@ -758,11 +758,17 @@
 class devsite ($proxy_4to6_ip) {
 	if $operatingsystem == 'CentOS' and versioncmp($operatingsystemrelease, '8') >= 0 {
 		$mod_wsgi_prefix = 'run/wsgi/'
+		$package_name = 'python3-mod_wsgi'
+		$mod_path = 'mod_wsgi_python3.so'
 	} else {
 		$mod_wsgi_prefix = undef
+		$package_name = undef
+		$mod_path = undef
 	}
 	class { 'apache::mod::wsgi':
 		  wsgi_socket_prefix => $mod_wsgi_prefix,
+		  package_name => $package_name,
+		  mod_path => $mod_path,
 	}
 
 	website::https::multitld { 'dev.ibboard':