2 Commits

Author SHA1 Message Date
7fa11089b1 Merge branch 'bugfix/ejabberd_restart_config_vhost_change' of kosmos/chef into master 2020-03-04 13:45:10 +00:00
Greg Karékinian
6cd0fa039e Restart ejabberd service when changing a vhost config
I have ran into an issue, changes to the LDAP config for a host are
currently only loaded on startup, not on reload

https://github.com/processone/ejabberd/issues/3181

This should be fixed once
b39a1e2d74
is part of the next release
2020-03-04 13:23:54 +01:00

View File

@@ -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