WIP Add initial cookbook and roles for email service

This commit is contained in:
Râu Cao
2023-12-01 09:50:35 +01:00
parent 158a9c2fbe
commit fbcf1ed5e7
23 changed files with 1587 additions and 0 deletions

View File

@@ -0,0 +1,25 @@
#
# Cookbook:: kosmos_email
# Recipe:: default
#
domain = node["email"]["domain"]
hostname = node["email"]["hostname"]
ip_addr = node["knife_zero"]["host"]
node.override["set_fqdn"] = hostname
include_recipe "hostname"
tls_cert_for hostname do
auth "gandi_dns"
action :create
end
firewall_rule "private network access" do
command :allow
protocol :tcp
source "10.1.1.0/24"
end
include_recipe 'kosmos_email::postfix'
include_recipe 'kosmos_email::dovecot'