Skip to content

Commit

Permalink
Merge pull request #1545 from HelenCampbell/slesFix
Browse files Browse the repository at this point in the history
[MODULES-3548] SLES 12 fix
  • Loading branch information
HAIL9000 committed Oct 27, 2016
2 parents 34a6b36 + 1729c0e commit 5d2e65e
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
1 change: 1 addition & 0 deletions manifests/mod/cgi.pp
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
class apache::mod::cgi {
case $::osfamily {
'FreeBSD': {}
'Suse': {}
default: {
Class['::apache::mod::prefork'] -> Class['::apache::mod::cgi']
}
Expand Down
6 changes: 5 additions & 1 deletion manifests/version.pp
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,11 @@
$default = '2.4'
}
'Suse': {
$default = '2.2'
if $::operatingsystem == 'SLES' and $::operatingsystemrelease == '12' {
$default = '2.4'
} else {
$default = '2.2'
}
}
default: {
fail("Class['apache::version']: Unsupported osfamily: ${::osfamily}")
Expand Down
2 changes: 1 addition & 1 deletion spec/classes/mod/ssl_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@
{
:osfamily => 'Suse',
:operatingsystem => 'SLES',
:operatingsystemrelease => '11.2',
:operatingsystemrelease => '12',
:concat_basedir => '/dne',
:id => 'root',
:kernel => 'Linux',
Expand Down

0 comments on commit 5d2e65e

Please sign in to comment.