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:
		
							parent
							
								
									0c29fad404
								
							
						
					
					
						commit
						f82fdd96cf
					
				@ -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
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user