Skip to content

Commit

Permalink
Merge pull request puppetlabs#1862 from david22swan/MODULES-8141/MODU…
Browse files Browse the repository at this point in the history
…LES-8379

(Modules 8141/Modules 8379) - Addition of support for SLES 15
  • Loading branch information
pmcmaw authored Dec 18, 2018
2 parents 982b0ff + 65d4e77 commit 84708b6
Show file tree
Hide file tree
Showing 17 changed files with 102 additions and 6 deletions.
10 changes: 8 additions & 2 deletions manifests/params.pp
Original file line number Diff line number Diff line change
Expand Up @@ -725,8 +725,14 @@
$logroot_mode = undef
$lib_path = '/usr/lib64/apache2' #changes for some modules based on mpm
$mpm_module = 'prefork'
$default_ssl_cert = '/etc/apache2/ssl.crt/server.crt'
$default_ssl_key = '/etc/apache2/ssl.key/server.key'

if $::operatingsystemrelease < '15' {
$default_ssl_cert = '/etc/apache2/ssl.crt/server.crt'
$default_ssl_key = '/etc/apache2/ssl.key/server.key'
} else {
$default_ssl_cert = '/etc/apache2/ssl.crt/default-server.crt'
$default_ssl_key = '/etc/apache2/ssl.key/default-server.key'
}
$ssl_sessioncache = '/var/lib/apache2/ssl_scache(512000)'
$suphp_addhandler = 'x-httpd-php'
$suphp_engine = 'off'
Expand Down
3 changes: 2 additions & 1 deletion metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,8 @@
"operatingsystem": "SLES",
"operatingsystemrelease": [
"11 SP1",
"12"
"12",
"15"
]
},
{
Expand Down
6 changes: 6 additions & 0 deletions spec/acceptance/apache_parameters_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,8 @@ class { 'apache':
it { is_expected.to be_running }
if fact('operatingsystem') == 'Debian' && fact('operatingsystemmajrelease') == '8'
pending 'Should be enabled - Bug 760616 on Debian 8'
elsif fact('operatingsystem') == 'SLES' && fact('operatingsystemmajrelease') == '15'
pending 'Should be enabled - MODULES-8379 `be_enabled` check does not currently work for apache2 on SLES 15'
else
it { is_expected.to be_enabled }
end
Expand All @@ -77,6 +79,8 @@ class { 'apache':
it { is_expected.not_to be_running }
if fact('operatingsystem') == 'Debian' && fact('operatingsystemmajrelease') == '8'
pending 'Should be enabled - Bug 760616 on Debian 8'
elsif fact('operatingsystem') == 'SLES' && fact('operatingsystemmajrelease') == '15'
pending 'Should be enabled - MODULES-8379 `be_enabled` check does not currently work for apache2 on SLES 15'
else
it { is_expected.not_to be_enabled }
end
Expand All @@ -99,6 +103,8 @@ class { 'apache':
it { is_expected.not_to be_running }
if fact('operatingsystem') == 'Debian' && fact('operatingsystemmajrelease') == '8'
pending 'Should be enabled - Bug 760616 on Debian 8'
elsif fact('operatingsystem') == 'SLES' && fact('operatingsystemmajrelease') == '15'
pending 'Should be enabled - MODULES-8379 `be_enabled` check does not currently work for apache2 on SLES 15'
else
it { is_expected.not_to be_enabled }
end
Expand Down
4 changes: 4 additions & 0 deletions spec/acceptance/class_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@
describe service($service_name) do
if fact('operatingsystem') == 'Debian' && fact('operatingsystemmajrelease') == '8'
pending 'Should be enabled - Bug 760616 on Debian 8'
elsif fact('operatingsystem') == 'SLES' && fact('operatingsystemmajrelease') == '15'
pending 'Should be enabled - MODULES-8379 `be_enabled` check does not currently work for apache2 on SLES 15'
else
it { is_expected.to be_enabled }
end
Expand Down Expand Up @@ -80,6 +82,8 @@ class { 'apache':
describe service($service_name) do
if fact('operatingsystem') == 'Debian' && fact('operatingsystemmajrelease') == '8'
pending 'Should be enabled - Bug 760616 on Debian 8'
elsif fact('operatingsystem') == 'SLES' && fact('operatingsystemmajrelease') == '15'
pending 'Should be enabled - MODULES-8379 `be_enabled` check does not currently work for apache2 on SLES 15'
else
it { is_expected.to be_enabled }
end
Expand Down
2 changes: 1 addition & 1 deletion spec/acceptance/default_mods_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ class { 'apache':
end
end

unless fact('operatingsystem') == 'SLES' && fact('operatingsystemmajrelease') == '12'
unless fact('operatingsystem') == 'SLES' && fact('operatingsystemmajrelease') >= '12'
describe 'no default mods and failing' do
before :all do
pp = <<-PP
Expand Down
2 changes: 2 additions & 0 deletions spec/acceptance/itk_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,8 @@ class { 'apache':
it { is_expected.to be_running }
if fact('operatingsystem') == 'Debian' && fact('operatingsystemmajrelease') == '8'
pending 'Should be enabled - Bug 760616 on Debian 8'
elsif fact('operatingsystem') == 'SLES' && fact('operatingsystemmajrelease') == '15'
pending 'Should be enabled - MODULES-8379 `be_enabled` check does not currently work for apache2 on SLES 15'
else
it { is_expected.to be_enabled }
end
Expand Down
4 changes: 4 additions & 0 deletions spec/acceptance/mod_dav_svn_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@ class { 'apache': }
describe service($service_name) do
if fact('operatingsystem') == 'Debian' && fact('operatingsystemmajrelease') == '8'
pending 'Should be enabled - Bug 760616 on Debian 8'
elsif fact('operatingsystem') == 'SLES' && fact('operatingsystemmajrelease') == '15'
pending 'Should be enabled - MODULES-8379 `be_enabled` check does not currently work for apache2 on SLES 15'
else
it { is_expected.to be_enabled }
end
Expand All @@ -50,6 +52,8 @@ class { 'apache::mod::dav_svn':
describe service($service_name) do
if fact('operatingsystem') == 'Debian' && fact('operatingsystemmajrelease') == '8'
pending 'Should be enabled - Bug 760616 on Debian 8'
elsif fact('operatingsystem') == 'SLES' && fact('operatingsystemmajrelease') == '15'
pending 'Should be enabled - MODULES-8379 `be_enabled` check does not currently work for apache2 on SLES 15'
else
it { is_expected.to be_enabled }
end
Expand Down
2 changes: 2 additions & 0 deletions spec/acceptance/mod_deflate_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ class { 'apache': }
describe service($service_name) do
if fact('operatingsystem') == 'Debian' && fact('operatingsystemmajrelease') == '8'
pending 'Should be enabled - Bug 760616 on Debian 8'
elsif fact('operatingsystem') == 'SLES' && fact('operatingsystemmajrelease') == '15'
pending 'Should be enabled - MODULES-8379 `be_enabled` check does not currently work for apache2 on SLES 15'
else
it { is_expected.to be_enabled }
end
Expand Down
2 changes: 2 additions & 0 deletions spec/acceptance/mod_mime_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ class { 'apache': }
describe service($service_name) do
if fact('operatingsystem') == 'Debian' && fact('operatingsystemmajrelease') == '8'
pending 'Should be enabled - Bug 760616 on Debian 8'
elsif fact('operatingsystem') == 'SLES' && fact('operatingsystemmajrelease') == '15'
pending 'Should be enabled - MODULES-8379 `be_enabled` check does not currently work for apache2 on SLES 15'
else
it { is_expected.to be_enabled }
end
Expand Down
6 changes: 6 additions & 0 deletions spec/acceptance/mod_negotiation_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ class { '::apache::mod::negotiation': }
describe service($service_name) do
if fact('operatingsystem') == 'Debian' && fact('operatingsystemmajrelease') == '8'
pending 'Should be enabled - Bug 760616 on Debian 8'
elsif fact('operatingsystem') == 'SLES' && fact('operatingsystemmajrelease') == '15'
pending 'Should be enabled - MODULES-8379 `be_enabled` check does not currently work for apache2 on SLES 15'
else
it { is_expected.to be_enabled }
end
Expand All @@ -46,6 +48,8 @@ class { '::apache::mod::negotiation':
describe service($service_name) do
if fact('operatingsystem') == 'Debian' && fact('operatingsystemmajrelease') == '8'
pending 'Should be enabled - Bug 760616 on Debian 8'
elsif fact('operatingsystem') == 'SLES' && fact('operatingsystemmajrelease') == '15'
pending 'Should be enabled - MODULES-8379 `be_enabled` check does not currently work for apache2 on SLES 15'
else
it { is_expected.to be_enabled }
end
Expand All @@ -71,6 +75,8 @@ class { '::apache::mod::negotiation':
describe service($service_name) do
if fact('operatingsystem') == 'Debian' && fact('operatingsystemmajrelease') == '8'
pending 'Should be enabled - Bug 760616 on Debian 8'
elsif fact('operatingsystem') == 'SLES' && fact('operatingsystemmajrelease') == '15'
pending 'Should be enabled - MODULES-8379 `be_enabled` check does not currently work for apache2 on SLES 15'
else
it { is_expected.to be_enabled }
end
Expand Down
2 changes: 2 additions & 0 deletions spec/acceptance/mod_passenger_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,8 @@ class { 'apache::mod::passenger': }
describe service($service_name) do
if fact('operatingsystem') == 'Debian' && fact('operatingsystemmajrelease') == '8'
pending 'Should be enabled - Bug 760616 on Debian 8'
elsif fact('operatingsystem') == 'SLES' && fact('operatingsystemmajrelease') == '15'
pending 'Should be enabled - MODULES-8379 `be_enabled` check does not currently work for apache2 on SLES 15'
else
it { is_expected.to be_enabled }
end
Expand Down
6 changes: 5 additions & 1 deletion spec/acceptance/mod_php_spec.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
require 'spec_helper_acceptance'
require_relative './version.rb'

unless fact('operatingsystem') == 'SLES' && fact('operatingsystemmajrelease') == '12'
unless fact('operatingsystem') == 'SLES' && fact('operatingsystemmajrelease') >= '12'
describe 'apache::mod::php class' do
context 'default php config' do
if ['16.04', '18.04'].include?(fact('operatingsystemmajrelease'))
Expand Down Expand Up @@ -48,6 +48,8 @@ class { 'apache::mod::php': }
describe service($service_name) do
if fact('operatingsystem') == 'Debian' && fact('operatingsystemmajrelease') == '8'
pending 'Should be enabled - Bug 760616 on Debian 8'
elsif fact('operatingsystem') == 'SLES' && fact('operatingsystemmajrelease') == '15'
pending 'Should be enabled - MODULES-8379 `be_enabled` check does not currently work for apache2 on SLES 15'
else
it { is_expected.to be_enabled }
end
Expand Down Expand Up @@ -110,6 +112,8 @@ class { 'apache::mod::php':
describe service($service_name) do
if fact('operatingsystem') == 'Debian' && fact('operatingsystemmajrelease') == '8'
pending 'Should be enabled - Bug 760616 on Debian 8'
elsif fact('operatingsystem') == 'SLES' && fact('operatingsystemmajrelease') == '15'
pending 'Should be enabled - MODULES-8379 `be_enabled` check does not currently work for apache2 on SLES 15'
else
it { is_expected.to be_enabled }
end
Expand Down
2 changes: 2 additions & 0 deletions spec/acceptance/mod_proxy_html_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@ class { 'apache::mod::proxy_html': }
describe service($service_name) do
if fact('operatingsystem') == 'Debian' && fact('operatingsystemmajrelease') == '8'
pending 'Should be enabled - Bug 760616 on Debian 8'
elsif fact('operatingsystem') == 'SLES' && fact('operatingsystemmajrelease') == '15'
pending 'Should be enabled - MODULES-8379 `be_enabled` check does not currently work for apache2 on SLES 15'
else
it { is_expected.to be_enabled }
end
Expand Down
12 changes: 12 additions & 0 deletions spec/acceptance/mod_security_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,8 @@ class { 'apache::mod::security': }
describe service($service_name) do
if fact('operatingsystem') == 'Debian' && fact('operatingsystemmajrelease') == '8'
pending 'Should be enabled - Bug 760616 on Debian 8'
elsif fact('operatingsystem') == 'SLES' && fact('operatingsystemmajrelease') == '15'
pending 'Should be enabled - MODULES-8379 `be_enabled` check does not currently work for apache2 on SLES 15'
else
it { is_expected.to be_enabled }
end
Expand Down Expand Up @@ -106,6 +108,8 @@ class { 'apache::mod::security': }
describe service($service_name) do
if fact('operatingsystem') == 'Debian' && fact('operatingsystemmajrelease') == '8'
pending 'Should be enabled - Bug 760616 on Debian 8'
elsif fact('operatingsystem') == 'SLES' && fact('operatingsystemmajrelease') == '15'
pending 'Should be enabled - MODULES-8379 `be_enabled` check does not currently work for apache2 on SLES 15'
else
it { is_expected.to be_enabled }
end
Expand Down Expand Up @@ -170,6 +174,8 @@ class { 'apache::mod::security': }
describe service($service_name) do
if fact('operatingsystem') == 'Debian' && fact('operatingsystemmajrelease') == '8'
pending 'Should be enabled - Bug 760616 on Debian 8'
elsif fact('operatingsystem') == 'SLES' && fact('operatingsystemmajrelease') == '15'
pending 'Should be enabled - MODULES-8379 `be_enabled` check does not currently work for apache2 on SLES 15'
else
it { is_expected.to be_enabled }
end
Expand Down Expand Up @@ -238,6 +244,8 @@ class { 'apache::mod::security': }
describe service($service_name) do
if fact('operatingsystem') == 'Debian' && fact('operatingsystemmajrelease') == '8'
pending 'Should be enabled - Bug 760616 on Debian 8'
elsif fact('operatingsystem') == 'SLES' && fact('operatingsystemmajrelease') == '15'
pending 'Should be enabled - MODULES-8379 `be_enabled` check does not currently work for apache2 on SLES 15'
else
it { is_expected.to be_enabled }
end
Expand Down Expand Up @@ -306,6 +314,8 @@ class { 'apache::mod::security': }
describe service($service_name) do
if fact('operatingsystem') == 'Debian' && fact('operatingsystemmajrelease') == '8'
pending 'Should be enabled - Bug 760616 on Debian 8'
elsif fact('operatingsystem') == 'SLES' && fact('operatingsystemmajrelease') == '15'
pending 'Should be enabled - MODULES-8379 `be_enabled` check does not currently work for apache2 on SLES 15'
else
it { is_expected.to be_enabled }
end
Expand Down Expand Up @@ -374,6 +384,8 @@ class { 'apache::mod::security': }
describe service($service_name) do
if fact('operatingsystem') == 'Debian' && fact('operatingsystemmajrelease') == '8'
pending 'Should be enabled - Bug 760616 on Debian 8'
elsif fact('operatingsystem') == 'SLES' && fact('operatingsystemmajrelease') == '15'
pending 'Should be enabled - MODULES-8379 `be_enabled` check does not currently work for apache2 on SLES 15'
else
it { is_expected.to be_enabled }
end
Expand Down
6 changes: 6 additions & 0 deletions spec/acceptance/prefork_worker_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ class { 'apache':
it { is_expected.to be_running }
if fact('operatingsystem') == 'Debian' && fact('operatingsystemmajrelease') == '8'
pending 'Should be enabled - Bug 760616 on Debian 8'
elsif fact('operatingsystem') == 'SLES' && fact('operatingsystemmajrelease') == '15'
pending 'Should be enabled - MODULES-8379 `be_enabled` check does not currently work for apache2 on SLES 15'
else
it { is_expected.to be_enabled }
end
Expand All @@ -49,6 +51,8 @@ class { 'apache':
it { is_expected.to be_running }
if fact('operatingsystem') == 'Debian' && fact('operatingsystemmajrelease') == '8'
pending 'Should be enabled - Bug 760616 on Debian 8'
elsif fact('operatingsystem') == 'SLES' && fact('operatingsystemmajrelease') == '15'
pending 'Should be enabled - MODULES-8379 `be_enabled` check does not currently work for apache2 on SLES 15'
else
it { is_expected.to be_enabled }
end
Expand All @@ -74,6 +78,8 @@ class { 'apache':
it { is_expected.to be_running }
if fact('operatingsystem') == 'Debian' && fact('operatingsystemmajrelease') == '8'
pending 'Should be enabled - Bug 760616 on Debian 8'
elsif fact('operatingsystem') == 'SLES' && fact('operatingsystemmajrelease') == '15'
pending 'Should be enabled - MODULES-8379 `be_enabled` check does not currently work for apache2 on SLES 15'
else
it { is_expected.to be_enabled }
end
Expand Down
Loading

0 comments on commit 84708b6

Please sign in to comment.