Fix ssl template logic

If we *have* a value for the ssl_cert_file, we want to use the SSL
template.

Change-Id: I470642d6308b4cb59deacf8b7c8e849d0a8efb0d
This commit is contained in:
Ian Wienand 2018-05-21 15:51:36 +10:00
parent 0fb8056471
commit 7cd8a2d4a3

View File

@ -117,9 +117,9 @@ class nodepool::builder(
include ::httpd
if $ssl_cert_file != '' {
$http_template = 'nodepool/nodepool-builder.vhost.erb'
} else {
$http_template = 'nodepool/nodepool-builder.ssl.vhost.erb'
} else {
$http_template = 'nodepool/nodepool-builder.vhost.erb'
}
::httpd::vhost { $vhost_name: