Skip to content

Commit

Permalink
$ssl is implied by $ssl_only
Browse files Browse the repository at this point in the history
(I'm too lazy to add ssl=true AND ssl_only=true to each location)
  • Loading branch information
Nick Albion authored and Nick Albion committed Jun 24, 2014
1 parent 3d0ec38 commit 4f84405
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions manifests/resource/location.pp
Original file line number Diff line number Diff line change
Expand Up @@ -270,7 +270,7 @@
} else {
$content_real = template('nginx/vhost/vhost_location_empty.erb')
}

if $fastcgi != undef and !defined(File[$fastcgi_params]) {
file { $fastcgi_params:
ensure => present,
Expand All @@ -292,7 +292,7 @@
}

## Only create SSL Specific locations if $ssl is true.
if ($ssl == true) {
if ($ssl == true or $ssl_only == true) {
$ssl_priority = $priority + 300

$sslTmpFile=md5("${vhost_sanitized}-${ssl_priority}-${location_sanitized}-ssl")
Expand Down

0 comments on commit 4f84405

Please sign in to comment.