Merge pull request #321 from saz/patch-1

Fix error message if ssl_cert/ssl_key is not set.
This commit is contained in:
James Fryman 2014-05-29 06:56:20 -07:00
commit e7890e1025

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)')
}
}