From 2958ba4b817928a017a75ce04af0891490d3793e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A2u=20Cao?= Date: Sat, 26 Nov 2022 16:47:28 +0100 Subject: [PATCH] Use *.kosmos.local hostnames for LDAP nodes --- site-cookbooks/kosmos-dirsrv/recipes/default.rb | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/site-cookbooks/kosmos-dirsrv/recipes/default.rb b/site-cookbooks/kosmos-dirsrv/recipes/default.rb index c79e329..e8269ed 100644 --- a/site-cookbooks/kosmos-dirsrv/recipes/default.rb +++ b/site-cookbooks/kosmos-dirsrv/recipes/default.rb @@ -4,9 +4,14 @@ # credentials = data_bag_item("credentials", "dirsrv") +local_hostname = "#{node["hostname"]}.kosmos.local" + +hostsfile_entry "127.0.0.1" do + hostname local_hostname +end dirsrv_instance "master" do - hostname "ldap.kosmos.local" + hostname local_hostname admin_password credentials['admin_password'] suffix "dc=kosmos,dc=org" end