Skip to content

Commit d7a1d8c

Browse files
authored
Merge pull request #2123 from ekohl/fact-cleanup
Drop support for Debian < 9
2 parents e4a1532 + 33ae7b5 commit d7a1d8c

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

60 files changed

+70
-142
lines changed

manifests/dev.pp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
#
44
# The libraries installed depends on the `dev_packages` parameter of the `apache::params`
55
# class, based on your operating system:
6-
# - **Debian** : `libaprutil1-dev`, `libapr1-dev`; `apache2-dev` on Ubuntu 13.10 and Debian 8; `apache2-prefork-dev` on other versions.
6+
# - **Debian** : `libaprutil1-dev`, `libapr1-dev`; `apache2-dev`
77
# - **FreeBSD**: `undef`; on FreeBSD, you must declare the `apache::package` or `apache` classes before declaring `apache::dev`.
88
# - **Gentoo**: `undef`.
99
# - **Red Hat**: `httpd-devel`.

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/apache_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
describe 'apache', type: :class do
66
context 'on a Debian OS' do
7-
include_examples 'Debian 8'
7+
include_examples 'Debian 11'
88

99
it { is_expected.to contain_class('apache::params') }
1010
it {

spec/classes/mod/alias_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
context 'default configuration with parameters' do
99
context 'on a Debian OS', :compile do
10-
include_examples 'Debian 8'
10+
include_examples 'Debian 11'
1111

1212
it { is_expected.to contain_apache__mod('alias') }
1313
it { is_expected.to contain_file('alias.conf').with(content: %r{Alias \/icons\/ "\/usr\/share\/apache2\/icons\/"}) }

spec/classes/mod/auth_cas_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
end
2525

2626
context 'on a Debian OS', :compile do
27-
include_examples 'Debian 8'
27+
include_examples 'Debian 11'
2828

2929
it { is_expected.to contain_class('apache::params') }
3030
it { is_expected.to contain_apache__mod('auth_cas') }

spec/classes/mod/auth_gssapi_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
context 'default configuration with parameters' do
99
context 'on a Debian OS', :compile do
10-
include_examples 'Debian 8'
10+
include_examples 'Debian 11'
1111

1212
it { is_expected.to contain_class('apache::params') }
1313
it { is_expected.to contain_apache__mod('auth_gssapi') }

spec/classes/mod/auth_kerb_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
context 'default configuration with parameters' do
99
context 'on a Debian OS', :compile do
10-
include_examples 'Debian 8'
10+
include_examples 'Debian 11'
1111

1212
it { is_expected.to contain_class('apache::params') }
1313
it { is_expected.to contain_apache__mod('auth_kerb') }

spec/classes/mod/auth_mellon_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
it_behaves_like 'a mod class, without including apache'
77

88
context 'default configuration with parameters on a Debian OS' do
9-
include_examples 'Debian 8'
9+
include_examples 'Debian 11'
1010

1111
describe 'with no parameters' do
1212
it { is_expected.to contain_apache__mod('auth_mellon') }

0 commit comments

Comments
 (0)