diff --git a/site-cookbooks/kosmos-ejabberd/recipes/default.rb b/site-cookbooks/kosmos-ejabberd/recipes/default.rb index e2d0065..c11aaaa 100644 --- a/site-cookbooks/kosmos-ejabberd/recipes/default.rb +++ b/site-cookbooks/kosmos-ejabberd/recipes/default.rb @@ -138,7 +138,13 @@ hosts.each do |host| ldap_server: ldap_domain, ldap_rootdn: ldap_rootdn, ldap_encryption_type: ldap_encryption_type - notifies :run, "execute[ejabberdctl reload_config]", :delayed + # Restarting the service is needed because the LDAP options are only parsed + # on start (https://github.com/processone/ejabberd/issues/3181#issuecomment-594482546) + # This can be changed back to reloading when this is part of a release: + # https://github.com/processone/ejabberd/commit/b39a1e2d74cd4d400a7f062e31056057573298e8 + # + # notifies :run, "execute[ejabberdctl reload_config]", :delayed + notifies :restart, "service[ejabberd]", :delayed end end