diff options
Diffstat (limited to '')
-rw-r--r-- | functions/conf/nginx.pp | 2 | ||||
-rw-r--r-- | functions/conf/nginx/location.pp | 1 | ||||
-rw-r--r-- | manifests/cert.pp | 4 |
3 files changed, 3 insertions, 4 deletions
diff --git a/functions/conf/nginx.pp b/functions/conf/nginx.pp index aa5f30e..f8e6123 100644 --- a/functions/conf/nginx.pp +++ b/functions/conf/nginx.pp @@ -1,3 +1,5 @@ +# Returns a hash to be merged into a nginx::resource::server resources +# parameters. The cert_name parameter should be the name of the domain in question, and NOT the local certificate name. function letsencrypt::conf::nginx ( String $cert_name, ) >> Letsencrypt::Ssl_conf::Nginx { diff --git a/functions/conf/nginx/location.pp b/functions/conf/nginx/location.pp index 84d0e82..a787013 100644 --- a/functions/conf/nginx/location.pp +++ b/functions/conf/nginx/location.pp @@ -1,3 +1,4 @@ +# Returns a hash to be merged into a nginx::resource::location resource. function letsencrypt::conf::nginx::location ( String $cert_name, ) >> Letsencrypt::Ssl_conf::Nginx::Location { diff --git a/manifests/cert.pp b/manifests/cert.pp index ec2baf1..3af03fa 100644 --- a/manifests/cert.pp +++ b/manifests/cert.pp @@ -57,10 +57,6 @@ define letsencrypt::cert ( letsencrypt::renew { $cert_name: } - # This might be incorrect. If a certificate of that name already - # exists then the new certificate will instead be called - # ${cert-name}-0001. See - # https://eff-certbot.readthedocs.io/en/stable/using.html#where-are-my-certificates if ! $cert_name in $facts['letsencrypt_bycertname'] { exec { "letsencrypt - get initial ${cert_name}": creates => "${letsencrypt::cert_dir}/${cert_name}", |