Improve mail server TLS certificate management #556

Merged
greg merged 3 commits from chore/mail_server_cert into master 2024-06-05 14:49:02 +00:00
Showing only changes of commit cfb379741e - Show all commits

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