aboutsummaryrefslogtreecommitdiff
path: root/manifests/domain.pp
diff options
context:
space:
mode:
authorHugo Hörnquist <hugo@lysator.liu.se>2023-01-07 13:00:34 +0100
committerHugo Hörnquist <hugo@lysator.liu.se>2023-01-07 13:00:34 +0100
commit29bd0bfdbc60cc8ade477f306f114af734cf7aba (patch)
treeceaa092216b7eaaf9126a93af40e430dfbd70d85 /manifests/domain.pp
parentUpdate fact to match pdk linter. (diff)
downloadhugonikanor-letsencrypt-29bd0bfdbc60cc8ade477f306f114af734cf7aba.tar.gz
hugonikanor-letsencrypt-29bd0bfdbc60cc8ade477f306f114af734cf7aba.tar.xz
Major cleanup.
Diffstat (limited to 'manifests/domain.pp')
-rw-r--r--manifests/domain.pp10
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}":