Skip to content

Commit

Permalink
Merge pull request #906 from wyardley/issue_894_file_requires
Browse files Browse the repository at this point in the history
'Require' vhost dir / enable dir in files
  • Loading branch information
bastelfreak authored Oct 10, 2016
2 parents d48b434 + 3e46b30 commit 269002e
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 269002e

Please sign in to comment.