summaryrefslogtreecommitdiff
path: root/manifests/certificate.pp
diff options
context:
space:
mode:
Diffstat (limited to 'manifests/certificate.pp')
-rw-r--r--manifests/certificate.pp4
1 files changed, 2 insertions, 2 deletions
diff --git a/manifests/certificate.pp b/manifests/certificate.pp
index 829ae37..c3be0b9 100644
--- a/manifests/certificate.pp
+++ b/manifests/certificate.pp
@@ -2,7 +2,7 @@
# Should preferably be included before a letsencrypt::domain resource
# is declared.
class profiles::certificate (
- String $cert_name = $::fqdn,
+ String $cert_name = $trusted['hostname'],
Letsencrypt::Authenticator $authenticator = 'nginx',
Hash[String,Any] $config = {
# more portable than 'systemctl reload nginx'
@@ -12,7 +12,7 @@ class profiles::certificate (
include ::letsencrypt
letsencrypt::cert { $cert_name:
- domains => [ $::fqdn, ],
+ domains => [ $trusted['hostname'], ],
authenticator => $authenticator,
config => $config,
}