From 89b97e748028f013b76260dd456f99fb98085ce2 Mon Sep 17 00:00:00 2001 From: Tim Abbott Date: Tue, 24 Oct 2017 11:13:37 -0700 Subject: [PATCH] python3: Fix REMOTE_USER Apache configuration for Python 3. We were previously still installing the Python 2 version of mod_wsgi, which of course doesn't work and can't use the Zulip virtualenv. --- puppet/zulip/manifests/apache_sso.pp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/puppet/zulip/manifests/apache_sso.pp b/puppet/zulip/manifests/apache_sso.pp index ab32067581..dbdeab7312 100644 --- a/puppet/zulip/manifests/apache_sso.pp +++ b/puppet/zulip/manifests/apache_sso.pp @@ -1,9 +1,12 @@ class zulip::apache_sso { include zulip::localhost_sso - $apache_packages = [ "apache2", "libapache2-mod-wsgi", ] + $apache_packages = [ "apache2", "libapache2-mod-wsgi-py3", ] package { $apache_packages: ensure => "installed" } + $apache_former_packages = [ "apache2", "libapache2-mod-wsgi", ] + package { $apache_legacy_packages: ensure => "absent" } + apache2mod { [ "headers", "proxy", "proxy_http", "rewrite", "ssl", ]: ensure => present, require => Package['apache2'],