Skip to content

Commit 33ae7b5

Browse files
committed
Drop Debian < 9 and Ubuntu < 16.04
1 parent fbba7bb commit 33ae7b5

File tree

4 files changed

+2
-59
lines changed

4 files changed

+2
-59
lines changed

manifests/mod/suphp.pp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,7 @@
55
#
66
class apache::mod::suphp (
77
) {
8-
if ($facts['os']['name'] == 'Ubuntu' and versioncmp($facts['os']['release']['major'], '15.10') >= 0) or
9-
$facts['os']['name'] == 'Debian' {
8+
if $facts['os']['family'] == 'Debian' {
109
fail("suphp was declared EOL by it's creators as of 2013 and so is no longer supported on Ubuntu 15.10/Debian 8 and above. Please use php-fpm")
1110
}
1211
include apache

manifests/params.pp

Lines changed: 1 addition & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -361,38 +361,7 @@
361361
$suphp_addhandler = 'x-httpd-php'
362362
$suphp_engine = 'off'
363363
$suphp_configpath = '/etc/php5/apache2'
364-
if ($::operatingsystem == 'Ubuntu' and versioncmp($::operatingsystemrelease, '16.04') < 0) or ($::operatingsystem == 'Debian' and versioncmp($::operatingsystemrelease, '9') < 0) {
365-
# Only the major version is used here
366-
$php_version = '5'
367-
$mod_packages = {
368-
'auth_cas' => 'libapache2-mod-auth-cas',
369-
'auth_kerb' => 'libapache2-mod-auth-kerb',
370-
'auth_openidc' => 'libapache2-mod-auth-openidc',
371-
'auth_gssapi' => 'libapache2-mod-auth-gssapi',
372-
'auth_mellon' => 'libapache2-mod-auth-mellon',
373-
'authnz_pam' => 'libapache2-mod-authnz-pam',
374-
'dav_svn' => 'libapache2-svn',
375-
'fastcgi' => 'libapache2-mod-fastcgi',
376-
'fcgid' => 'libapache2-mod-fcgid',
377-
'geoip' => 'libapache2-mod-geoip',
378-
'intercept_form_submit' => 'libapache2-mod-intercept-form-submit',
379-
'jk' => 'libapache2-mod-jk',
380-
'lookup_identity' => 'libapache2-mod-lookup-identity',
381-
'nss' => 'libapache2-mod-nss',
382-
'pagespeed' => 'mod-pagespeed-stable',
383-
'passenger' => 'libapache2-mod-passenger',
384-
'perl' => 'libapache2-mod-perl2',
385-
'phpXXX' => 'libapache2-mod-phpXXX',
386-
'proxy_html' => 'libapache2-mod-proxy-html',
387-
'python' => 'libapache2-mod-python',
388-
'rpaf' => 'libapache2-mod-rpaf',
389-
'security' => 'libapache2-modsecurity',
390-
'shib2' => 'libapache2-mod-shib2',
391-
'suphp' => 'libapache2-mod-suphp',
392-
'wsgi' => 'libapache2-mod-wsgi',
393-
'xsendfile' => 'libapache2-mod-xsendfile',
394-
}
395-
} elsif ($::operatingsystem == 'Ubuntu') or ($::operatingsystem == 'Debian' and versioncmp($::operatingsystemmajrelease, '11') < 0) {
364+
if ($::operatingsystem == 'Ubuntu') or ($::operatingsystem == 'Debian' and versioncmp($::operatingsystemmajrelease, '11') < 0) {
396365
$php_version = $facts['operatingsystemmajrelease'] ? {
397366
'9' => '7.0', # Debian Stretch
398367
'16.04' => '7.0', # Ubuntu Xenial

metadata.json

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,6 @@
5151
{
5252
"operatingsystem": "Debian",
5353
"operatingsystemrelease": [
54-
"8",
5554
"9",
5655
"10",
5756
"11"
@@ -67,7 +66,6 @@
6766
{
6867
"operatingsystem": "Ubuntu",
6968
"operatingsystemrelease": [
70-
"14.04",
7169
"16.04",
7270
"18.04",
7371
"20.04"

spec/classes/mod/php_spec.rb

Lines changed: 0 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -20,29 +20,6 @@
2020
it { is_expected.to contain_class('apache::mod::prefork') }
2121
end
2222
case facts[:os]['release']['major']
23-
when '8'
24-
context 'on jessie' do
25-
it {
26-
is_expected.to contain_file('php5.load').with(
27-
content: "LoadModule php5_module /usr/lib/apache2/modules/libphp5.so\n",
28-
)
29-
}
30-
context 'with mpm_module => itk on jessie' do
31-
let :pre_condition do
32-
'class { "apache": mpm_module => itk, }'
33-
end
34-
35-
it { is_expected.to contain_class('apache::params') }
36-
it { is_expected.to contain_class('apache::mod::itk') }
37-
it { is_expected.to contain_apache__mod('php5') }
38-
it { is_expected.to contain_package('libapache2-mod-php5') }
39-
it {
40-
is_expected.to contain_file('php5.load').with(
41-
content: "LoadModule php5_module /usr/lib/apache2/modules/libphp5.so\n",
42-
)
43-
}
44-
end
45-
end
4623
when '9'
4724
context 'on stretch' do
4825
it { is_expected.to contain_apache__mod('php7.0') }

0 commit comments

Comments
 (0)