From 0dbf3505404a86b44c6a479608ef16d52545ddb0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Greg=20Kar=C3=A9kinian?= Date: Wed, 4 Dec 2019 17:40:27 +0100 Subject: [PATCH] Restart the server after importing the TLS cert --- site-cookbooks/kosmos-dirsrv/resources/instance.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/site-cookbooks/kosmos-dirsrv/resources/instance.rb b/site-cookbooks/kosmos-dirsrv/resources/instance.rb index abb9253..47bc738 100644 --- a/site-cookbooks/kosmos-dirsrv/resources/instance.rb +++ b/site-cookbooks/kosmos-dirsrv/resources/instance.rb @@ -109,6 +109,7 @@ action :create do command "ldapadd -x -w #{new_resource.admin_password} -D '#{new_resource.bind_dn}' -f '#{Chef::Config[:file_cache_path]}/tls.ldif' -p #{new_resource.port} -h localhost" sensitive true action :nothing + notifies :restart, "service[#{service_name}]", :immediately end end end