WIP: Set up ejabberd for kosmos.org #24

Closed
greg wants to merge 25 commits from feature/7-ejabberd_rebased into master

25 Commits

Author SHA1 Message Date
Greg Karékinian
6b316f28fb Start from the current config file in Andromeda
Only changes:

Enable the new SQL schema that allows multiple vhosts in the same
database, move mod_muc config for kosmos.org to an append_host_config
directive
2019-03-27 12:56:46 +01:00
Greg Karékinian
ce4a4bffd9 Enable OMEMO for clients using Conversations 2019-03-27 11:57:59 +01:00
Greg Karékinian
70fb97ba4b Add the admin_update_sql module
This allows to upgrade from the old database schema to the new one that
works for multiple virtual hosts:
https://blog.process-one.net/ejabberd-18-03/

    ejabberdctl update_sql
2019-03-27 10:35:12 +01:00
Greg Karékinian
6833c23a01 Replace host_config with append_host_config
This was causing only the mod_muc module to be enabled for kosmos.org

See the Virtual Hosting section of the docs
https://docs.ejabberd.im/admin/configuration/
2019-03-26 15:52:11 +01:00
Greg Karékinian
c3da352458 Create the hook subfolders too 2019-03-26 15:23:58 +01:00
Greg Karékinian
20e0bb6983 Add the max_user_conferences setting for mod_muc 2019-03-26 15:22:50 +01:00
Greg Karékinian
3047dbe99f Fix botched merge 2019-03-19 19:41:26 +01:00
Greg Karékinian
ec58597320 Set up Let's Encrypt for the kosmos.org ejabberd server 2019-03-19 16:27:46 +01:00
Greg Karékinian
39f23dd373 Move the version and checksum to attributes 2019-03-19 16:26:49 +01:00
Greg Karékinian
2cd85afb28 Update ejabberd to 19.02 2019-03-19 10:48:34 +01:00
Greg Karékinian
18b12a1dc4 Set the ejabberd postgresql user from an encrypted data bag 2019-03-19 10:48:34 +01:00
Greg Karékinian
b5bd389e77 Set postgresql password from an encrypted data bag 2019-03-19 10:43:14 +01:00
Greg Karékinian
5ad24888ff Add our kosmos.org accounts as admins 2019-03-19 10:43:13 +01:00
Greg Karékinian
712507bed2 Get rid of the 5apps.com config for now 2019-03-19 10:43:13 +01:00
Greg Karékinian
8e052ab53a Add the kosmos-postgresql and ejabberd backup recipes 2019-03-19 10:43:13 +01:00
Greg Karékinian
a9d1b38f15 Update the postgresql cookbook 2019-03-19 10:43:13 +01:00
Greg Karékinian
32c4896eb7 Add a recipe that sets up backups for ejabberd 2019-03-19 10:43:13 +01:00
Greg Karékinian
39821ad253 Update the ipfs cookbook 2019-03-19 10:43:10 +01:00
Greg Karékinian
28b4193982 Add a dependency on the backup cookbook 2019-03-19 10:41:25 +01:00
Greg Karékinian
b5d76f7eaa Get rid of the deprecated set_unless 2019-03-19 10:41:25 +01:00
Greg Karékinian
2a4940b361 Install Ruby in the backup cookbook
Also switch to the 5.0 beta version, it works with modern Rubies
2019-03-19 10:41:23 +01:00
Greg Karékinian
3a8a2b6be0 Switch the config to the latest version without comments
Taken from the 18.12.1 default config
2019-03-19 10:38:34 +01:00
Greg Karékinian
aa64456fc7 Reload ejabberd when the config file changes 2019-03-19 10:38:34 +01:00
Greg Karékinian
70c4419c2a Add initial kosmos-postgresql cookbook
This is to install PostgreSQL all in one place instead of for each
service that needs it (Mastodon, ejabberd, ...)
2019-03-19 10:38:34 +01:00
Greg Karékinian
c861c73025 Initial kosmos-ejabberd cookbook
No Let's Encrypt cert generation recipe for now

Hardcoded PostgreSQL password too
2019-03-19 10:38:34 +01:00