diff options
Diffstat (limited to 'manifests/domain.pp')
-rw-r--r-- | manifests/domain.pp | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/manifests/domain.pp b/manifests/domain.pp index cc9e2af..9e6b377 100644 --- a/manifests/domain.pp +++ b/manifests/domain.pp @@ -1,14 +1,16 @@ # A single domain belonging to a certificate -# Example +# @example # letsencrypt::domain { 'www.example.com': # cert_name => 'example.com', # } +# @param domain_name Hostname which should be included in the target certificate +# @param cert_name Certificate to add the hostname to define letsencrypt::domain ( - String $domain_name => $name, - String $cert_name => $::fqdn, + String $domain_name = $name, + String $cert_name = $::facts['fqdn'], ) { ensure_resource('letsencrypt::cert', $cert_name, { - ensure => present, + ensure => present, }) concat::fragment { "letsencrypt ${cert_name} - ${domain_name}": |