diff options
Diffstat (limited to 'lib/puppet/sslcertificates.rb')
-rwxr-xr-x | lib/puppet/sslcertificates.rb | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/puppet/sslcertificates.rb b/lib/puppet/sslcertificates.rb index 8c93139a9..eaee75d6c 100755 --- a/lib/puppet/sslcertificates.rb +++ b/lib/puppet/sslcertificates.rb @@ -11,7 +11,11 @@ end module Puppet::SSLCertificates hostname = Facter["hostname"].value domain = Facter["domain"].value - fqdn = [hostname, domain].join(".") + if !domain || domain.empty? then + fqdn = hostname + else + fqdn = [hostname, domain].join(".") + end Puppet.setdefaults("certificates", :certdir => ["$ssldir/certs", "The certificate directory."], |