Add imap and smtp subdomains to mail server cert

closes #543

Co-authored-by: Greg Karékinian <greg@karekinian.com>
This commit is contained in:
Râu Cao 2024-06-05 15:50:28 +02:00
parent 0c29fad404
commit f82fdd96cf
Signed by: raucao
GPG Key ID: 37036C356E56CC51

View File

@ -7,6 +7,7 @@ domain = node["email"]["domain"]
hostname = node["email"]["hostname"]
root_dir = node["email"]["root_directory"]
ip_addr = node["knife_zero"]["host"]
extra_hostnames = ["smtp.#{domain}", "imap.#{domain}"]
node.override["set_fqdn"] = hostname
include_recipe "hostname"
@ -23,6 +24,7 @@ directory root_dir do
end
tls_cert_for hostname do
domain ([hostname]+extra_hostnames)
auth "gandi_dns"
action :create
end