Skip to content

Commit 496a9f8

Browse files
authored
Merge pull request #1945 from ThoughtCrhyme/FM-8393-ekohl
(FM-8393) add support on Debian 10
2 parents 908453a + 32b9d1f commit 496a9f8

File tree

4 files changed

+14
-35
lines changed

4 files changed

+14
-35
lines changed

manifests/params.pp

Lines changed: 7 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -361,9 +361,12 @@
361361
'wsgi' => 'libapache2-mod-wsgi',
362362
'xsendfile' => 'libapache2-mod-xsendfile',
363363
}
364-
} elsif ($::operatingsystem == 'Debian' and versioncmp($::operatingsystemrelease, '9') >= 0) {
365-
# Debian stretch uses a different dav_svn from Ubuntu Xenial
366-
$php_version = '7.0'
364+
} elsif ($::operatingsystem == 'Debian' and versioncmp($::operatingsystemrelease, '9') >= 0) or ($::operatingsystem == 'Ubuntu' and versioncmp($::operatingsystemrelease, '18.04') >= 0) {
365+
$php_version = $facts['operatingsystemmajrelease'] ? {
366+
'9' => '7.0', # Debian Stretch
367+
'10' => '7.3', # Debian Buster
368+
default => '7.2', # Ubuntu Bionic, Cosmic and Disco
369+
}
367370
$mod_packages = {
368371
'auth_cas' => 'libapache2-mod-auth-cas',
369372
'auth_kerb' => 'libapache2-mod-auth-kerb',
@@ -372,35 +375,6 @@
372375
'authnz_pam' => 'libapache2-mod-authnz-pam',
373376
'dav_svn' => 'libapache2-mod-svn',
374377
'fastcgi' => 'libapache2-mod-fastcgi',
375-
'fcgid' => 'libapache2-mod-fcgid',
376-
'geoip' => 'libapache2-mod-geoip',
377-
'intercept_form_submit' => 'libapache2-mod-intercept-form-submit',
378-
'lookup_identity' => 'libapache2-mod-lookup-identity',
379-
'nss' => 'libapache2-mod-nss',
380-
'pagespeed' => 'mod-pagespeed-stable',
381-
'passenger' => 'libapache2-mod-passenger',
382-
'perl' => 'libapache2-mod-perl2',
383-
'phpXXX' => 'libapache2-mod-phpXXX',
384-
'python' => 'libapache2-mod-python',
385-
'rpaf' => 'libapache2-mod-rpaf',
386-
'security' => 'libapache2-mod-security2',
387-
'shib2' => 'libapache2-mod-shib2',
388-
'suphp' => 'libapache2-mod-suphp',
389-
'wsgi' => 'libapache2-mod-wsgi',
390-
'xsendfile' => 'libapache2-mod-xsendfile',
391-
}
392-
} elsif ($::operatingsystem == 'Ubuntu' and versioncmp($::operatingsystemrelease, '18.04') >= 0) {
393-
# major.minor version used since Debian stretch and Ubuntu Xenial
394-
$php_version = '7.2' # different to Ubuntu 16.04
395-
# fastcgi and suphp got removed from #mod_packages, they aren't supported anymore
396-
$mod_packages = {
397-
'auth_cas' => 'libapache2-mod-auth-cas',
398-
'auth_kerb' => 'libapache2-mod-auth-kerb',
399-
'auth_gssapi' => 'libapache2-mod-auth-gssapi',
400-
'auth_mellon' => 'libapache2-mod-auth-mellon',
401-
'authnz_pam' => 'libapache2-mod-authnz-pam',
402-
'dav_svn' => 'libapache2-mod-svn', # different to Ubuntu16.04
403-
'fcgid' => 'libapache2-mod-fcgid',
404378
'geoip' => 'libapache2-mod-geoip',
405379
'intercept_form_submit' => 'libapache2-mod-intercept-form-submit',
406380
'lookup_identity' => 'libapache2-mod-lookup-identity',
@@ -417,7 +391,7 @@
417391
'xsendfile' => 'libapache2-mod-xsendfile',
418392
}
419393
} else {
420-
# major.minor version used since Debian stretch and Ubuntu Xenial
394+
# Ubuntu Xenial
421395
$php_version = '7.0'
422396
$mod_packages = {
423397
'auth_cas' => 'libapache2-mod-auth-cas',

metadata.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,8 @@
5353
"operatingsystem": "Debian",
5454
"operatingsystemrelease": [
5555
"8",
56-
"9"
56+
"9",
57+
"10"
5758
]
5859
},
5960
{

provision.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,4 @@ travis_el7:
1010
images: ['waffleimage/centos7', 'waffleimage/oraclelinux7', 'waffleimage/scientificlinux7']
1111
release_checks:
1212
provisioner: vmpooler
13-
images: ['redhat-5-x86_64', 'redhat-6-x86_64', 'redhat-7-x86_64', 'redhat-8-x86_64', 'centos-5-x86_64', 'centos-6-x86_64', 'centos-7-x86_64', 'oracle-6-x86_64', 'oracle-7-x86_64', 'scientific-6-x86_64', 'scientific-7-x86_64', 'debian-8-x86_64', 'debian-9-x86_64', 'ubuntu-1404-x86_64', 'ubuntu-1604-x86_64', 'ubuntu-1804-x86_64', 'sles-11-x86_64', 'sles-12-x86_64', 'sles-15-x86_64']
13+
images: ['redhat-5-x86_64', 'redhat-6-x86_64', 'redhat-7-x86_64', 'redhat-8-x86_64', 'centos-5-x86_64', 'centos-6-x86_64', 'centos-7-x86_64', 'oracle-6-x86_64', 'oracle-7-x86_64', 'scientific-6-x86_64', 'scientific-7-x86_64', 'debian-8-x86_64', 'debian-9-x86_64', 'debian-10-x86_64', 'ubuntu-1404-x86_64', 'ubuntu-1604-x86_64', 'ubuntu-1804-x86_64', 'sles-11-x86_64', 'sles-12-x86_64', 'sles-15-x86_64']

spec/acceptance/mod_php_spec.rb

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,10 @@ class { 'apache::mod::php': }
2727
describe file("#{apache_hash['mod_dir']}/php7.0.conf") do
2828
it { is_expected.to contain 'DirectoryIndex index.php' }
2929
end
30+
elsif os[:family] == 'debian' && os[:release] =~ %r{10}
31+
describe file("#{apache_hash['mod_dir']}/php7.3.conf") do
32+
it { is_expected.to contain 'DirectoryIndex index.php' }
33+
end
3034
elsif os[:family] == 'ubuntu' && os[:release] == '18.04'
3135
describe file("#{apache_hash['mod_dir']}/php7.2.conf") do
3236
it { is_expected.to contain 'DirectoryIndex index.php' }

0 commit comments

Comments
 (0)