Skip to content

Commit

Permalink
Merge pull request #844 from vpassapera/patch-1
Browse files Browse the repository at this point in the history
Fix duplicate declarations when puppet manages logroot for vhosts
  • Loading branch information
Morgan Haskel committed Sep 26, 2014
2 parents 3782afd + a529a40 commit df1b4d5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion manifests/vhost.pp
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@
$directoryindex = '',
$vhost_name = '*',
$logroot = $::apache::logroot,
$manage_logroot = true,
$logroot_ensure = 'directory',
$logroot_mode = undef,
$log_level = undef,
Expand Down Expand Up @@ -225,7 +226,7 @@
}

# Same as above, but for logroot
if ! defined(File[$logroot]) {
if ! defined(File[$logroot]) and $manage_logroot {
file { $logroot:
ensure => $logroot_ensure,
mode => $logroot_mode,
Expand Down

0 comments on commit df1b4d5

Please sign in to comment.