Use the same Erlang cookie to enable clustering

Refs #243
This commit is contained in:
Greg Karékinian
2020-11-25 16:32:07 +01:00
parent 3da883864b
commit 8b1f90c568
2 changed files with 15 additions and 1 deletions

View File

@@ -43,6 +43,13 @@ dpkg_package "ejabberd" do
notifies :create, "file[/lib/systemd/system/ejabberd.service]", :immediately
end
file "/opt/ejabberd/.erlang.cookie" do
mode "0400"
owner "ejabberd"
group "ejabberd"
content ejabberd_credentials['erlang_cookie']
end
postgresql_data_bag_item = data_bag_item('credentials', 'postgresql')
hosts = [