Fix error message if ssl_cert/ssl_key is not set.

This commit is contained in:
Steffen Zieger 2014-05-29 15:23:57 +02:00
parent 6c890da8ec
commit cb190e2c6d

View file

@ -362,7 +362,7 @@ define nginx::resource::vhost (
# Check to see if SSL Certificates are properly defined.
if ($ssl == true) {
if ($ssl_cert == undef) or ($ssl_key == undef) {
fail('nginx: SSL certificate/key (ssl_cert/ssl_cert) and/or SSL Private must be defined and exist on the target system(s)')
fail('nginx: SSL certificate/key (ssl_cert/ssl_key) and/or SSL Private must be defined and exist on the target system(s)')
}
}