Use attribute for root dir

This commit is contained in:
2024-01-08 11:35:04 +03:00
parent 98acd429de
commit daadd9374f
2 changed files with 14 additions and 12 deletions

View File

@@ -5,11 +5,23 @@
domain = node["email"]["domain"]
hostname = node["email"]["hostname"]
root_dir = node["email"]["root_directory"]
ip_addr = node["knife_zero"]["host"]
node.override["set_fqdn"] = hostname
include_recipe "hostname"
user "vmail" do
gid "mail"
system true
manage_home false
end
directory root_dir do
owner "vmail"
group "mail"
end
tls_cert_for hostname do
auth "gandi_dns"
action :create