# Returns a hash to be merged into a nginx::resource::server resources # parameters. # @param cert_name # name of the domain in question, NOT the local certificate name. # @return hash usable with nginx::resource::server function letsencrypt::conf::nginx ( String $cert_name, ) >> Letsencrypt::Ssl_conf::Nginx { $cert_path = $facts['letsencrypt_directory'][$cert_name] if $cert_path == undef { { ssl => false, } } else { { ssl => true, ssl_redirect => true, ssl_cert => "${cert_path}/fullchain.pem", ssl_key => "${cert_path}/privkey.pem", } } }