Initial version of the kosmos-dirsrv cookbook

It sets up 389 Directory Server, including a TLS cert acquired using
Let's Encrypt in production (that requires ldap.kosmos.org pointing to
the server's IP)
This commit is contained in:
Greg Karékinian
2019-11-04 18:15:44 +01:00
parent 529a4fc4a8
commit 9e4685a743
29 changed files with 1109 additions and 0 deletions

View File

@@ -0,0 +1,37 @@
[General]
FullMachineName = <%= node[:fqdn] %>
SuiteSpotGroup = dirsrv
SuiteSpotUserID = dirsrv
<% if @has_cfgdir -%>
<% if @cfgdir_domain %>
AdminDomain = <%= @cfgdir_domain %>
<% end -%>
ConfigDirectoryAdminID = <%= @cfgdir_credentials['username'] %>
ConfigDirectoryAdminPwd = <%= @cfgdir_credentials['password'] %>
ConfigDirectoryLdapURL = ldap://<%= @cfgdir_addr %>:<%= @cfgdir_ldap_port %>/o=NetscapeRoot
<% end -%>
<% if @is_cfgdir -%>
[admin]
Port = <%= @cfgdir_http_port %>
ServerAdminID = <%= @cfgdir_credentials['username'] %>
ServerAdminPwd = <%= @cfgdir_credentials['password'] %>
ServerIpAddress = <%= @cfgdir_addr %>
SysUser = dirsrv
<% end -%>
[slapd]
AddOrgEntries = <%= @add_org_entries %>
AddSampleEntries = <%= @add_sample_entries %>
InstallLdifFile = <%= @preseed_ldif %>
RootDN = <%= @credentials['bind_dn'] %>
RootDNPwd = <%= @credentials['password'] %>
ServerIdentifier = <%= @instance %>
ServerPort = <%= @port %>
Suffix = <%= @suffix %>
cert_dir = <%= @conf_dir %>/slapd-<%= @instance %>
config_dir = <%= @conf_dir %>/slapd-<%= @instance %>
bak_dir = <%= @base_dir %>/slapd-<%= @instance %>/bak
db_dir = <%= @base_dir %>/slapd-<%= @instance %>/db
ldif_dir = <%= @base_dir %>/slapd-<%= @instance %>/ldif
schema_dir = <%= @conf_dir %>/slapd-<%= @instance %>/schema