Skip to content

Commit eb909af

Browse files
authored
Merge pull request #1557 from eputnam/MODULES-3972
(MODULES-3972) fixes version errors and small fix for suse ssl
2 parents 2d70ca8 + e77d58b commit eb909af

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

spec/acceptance/vhost_spec.rb

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,12 @@
88
class { 'apache':
99
default_vhost => false,
1010
default_ssl_vhost => false,
11-
service_ensure => stopped
11+
service_ensure => stopped,
1212
}
1313
if ($::osfamily == 'Suse') {
14-
exec { '/usr/bin/gensslcert': }
14+
exec { '/usr/bin/gensslcert':
15+
require => Class['apache'],
16+
}
1517
}
1618
EOS
1719

@@ -312,7 +314,7 @@ class { 'apache':
312314
pp = <<-EOS
313315
class { 'apache': }
314316
315-
if versioncmp($apache::apache_version, '2.4') >= 0 {
317+
if versioncmp($apache_version, '2.4') >= 0 {
316318
$_files_match_directory = { 'path' => '(\.swp|\.bak|~)$', 'provider' => 'filesmatch', 'require' => 'all denied', }
317319
} else {
318320
$_files_match_directory = { 'path' => '(\.swp|\.bak|~)$', 'provider' => 'filesmatch', 'deny' => 'from all', }
@@ -360,7 +362,7 @@ class { 'apache': }
360362
pp = <<-EOS
361363
class { 'apache': }
362364
363-
if versioncmp($apache::apache_version, '2.4') >= 0 {
365+
if versioncmp($apache_version, '2.4') >= 0 {
364366
$_files_match_directory = { 'path' => 'private.html$', 'provider' => 'filesmatch', 'require' => 'all denied' }
365367
} else {
366368
$_files_match_directory = [

0 commit comments

Comments
 (0)