Skip to content

Commit 445fdc7

Browse files
author
Ashley Penney
committed
Merge pull request #820 from mhaskel/vhost_fixes
Fix dependency loop in vhost
2 parents e48b509 + 15a6687 commit 445fdc7

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

manifests/vhost.pp

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -295,6 +295,7 @@
295295
ensure => directory,
296296
mode => $logroot_mode,
297297
require => Package['httpd'],
298+
before => File["${priority_real}-${filename}.conf"],
298299
}
299300
}
300301

@@ -541,10 +542,7 @@
541542
owner => 'root',
542543
group => $::apache::params::root_group,
543544
mode => '0644',
544-
require => [
545-
Package['httpd'],
546-
File[$logroot],
547-
],
545+
require => Package['httpd'],
548546
notify => Service['httpd'],
549547
}
550548
if $::osfamily == 'Debian' {

spec/acceptance/vhost_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -997,7 +997,7 @@ class { 'apache': }
997997
comment => 'Permalink Rewrites',
998998
rewrite_base => '/',
999999
},
1000-
{ rewrite_rule => [ '^index\.php$ - [L]' ] },
1000+
{ rewrite_rule => [ '^index\\.php$ - [L]' ] },
10011001
{ rewrite_cond => [
10021002
'%{REQUEST_FILENAME} !-f',
10031003
'%{REQUEST_FILENAME} !-d', ], rewrite_rule => [ '. /index.php [L]' ], }

0 commit comments

Comments
 (0)