Skip to content

Commit

Permalink
Merge pull request voxpupuli#624 from Tombar/master
Browse files Browse the repository at this point in the history
Require base folder for resources
  • Loading branch information
3flex committed May 26, 2015
2 parents 1f1e493 + 02aa7f5 commit 4e9f91b
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
5 changes: 3 additions & 2 deletions manifests/resource/upstream.pp
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,9 @@
}

concat { "${::nginx::config::conf_dir}/conf.d/${name}-upstream.conf":
ensure => $ensure_real,
notify => Class['::nginx::service'],
ensure => $ensure_real,
notify => Class['::nginx::service'],
require => File["${::nginx::config::conf_dir}/conf.d"]
}

# Uses: $name, $upstream_cfg_prepend
Expand Down
9 changes: 5 additions & 4 deletions manifests/resource/vhost.pp
Original file line number Diff line number Diff line change
Expand Up @@ -506,10 +506,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]
}

$ssl_only = ($ssl == true) and ($ssl_port == $listen_port)
Expand Down

0 comments on commit 4e9f91b

Please sign in to comment.