Skip to content

Commit

Permalink
Merge pull request #63 from zoide/e20b7d11c3bea3aab515527d143e707f800…
Browse files Browse the repository at this point in the history
…783b6

Fixing boolean comparisons
  • Loading branch information
James Fryman committed May 29, 2013
2 parents f032357 + e20b7d1 commit 4837034
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions manifests/resource/location.pp
Original file line number Diff line number Diff line change
Expand Up @@ -124,15 +124,15 @@
}

## Create stubs for vHost File Fragment Pattern
if ($ssl_only != 'true') {
if ($ssl_only != true) {
file {"${nginx::config::nx_temp_dir}/nginx.d/${vhost}-500-${name}":
ensure => $ensure_real,
content => $content_real,
}
}

## Only create SSL Specific locations if $ssl is true.
if ($ssl == 'true') {
if ($ssl == true) {
file {"${nginx::config::nx_temp_dir}/nginx.d/${vhost}-800-${name}-ssl":
ensure => $ensure_real,
content => $content_real,
Expand Down
2 changes: 1 addition & 1 deletion manifests/resource/mailhost.pp
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
# ssl_port => 465,
# starttls => 'only',
# xclient => 'off',
# ssl => 'true',
# ssl => true,
# ssl_cert => '/tmp/server.crt',
# ssl_key => '/tmp/server.pem',
# }
Expand Down
8 changes: 4 additions & 4 deletions manifests/resource/vhost.pp
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@
# nginx::resource::vhost { 'test2.local':
# ensure => present,
# www_root => '/var/www/nginx-default',
# ssl => 'true',
# ssl => true,
# ssl_cert => '/tmp/server.crt',
# ssl_key => '/tmp/server.pem',
# }
Expand Down Expand Up @@ -131,8 +131,8 @@
}
}

if ($ssl == 'true') and ($ssl_port == $listen_port) {
$ssl_only = 'true'
if ($ssl == true) and ($ssl_port == $listen_port) {
$ssl_only = true
}

# Create the default location reference for the vHost
Expand Down Expand Up @@ -171,7 +171,7 @@
}

# Create SSL File Stubs if SSL is enabled
if ($ssl == 'true') {
if ($ssl == true) {
file { "${nginx::config::nx_temp_dir}/nginx.d/${name}-700-ssl":
ensure => $ensure ? {
'absent' => absent,
Expand Down

0 comments on commit 4837034

Please sign in to comment.