Skip to content

Commit

Permalink
'Require' vhost dir / enable dir in files created in those directories
Browse files Browse the repository at this point in the history
  • Loading branch information
William Yardley committed Oct 8, 2016
1 parent 2fd0a12 commit 15d3dfa
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions manifests/resource/vhost.pp
Original file line number Diff line number Diff line change
Expand Up @@ -593,10 +593,11 @@
}

concat { $config_file:
owner => $owner,
group => $group,
mode => $mode,
notify => Class['::nginx::service'],
owner => $owner,
group => $group,
mode => $mode,
notify => Class['::nginx::service'],
require => [File[$vhost_dir], File[$vhost_enable_dir]],
}

$ssl_only = ($ssl == true) and (($ssl_port + 0) == ($listen_port + 0))
Expand Down Expand Up @@ -704,7 +705,7 @@
ensure => $vhost_symlink_ensure,
path => "${vhost_enable_dir}/${name_sanitized}.conf",
target => $config_file,
require => Concat[$config_file],
require => [File[$vhost_dir], File[$vhost_enable_dir], Concat[$config_file]],
notify => Class['::nginx::service'],
}

Expand Down

0 comments on commit 15d3dfa

Please sign in to comment.