Ansible Role rocketchat
This role installs and configures Rocket.Chat, an Open-Source Chat system.
Runs on
RHEL 7 (and compatible)
RHEL 8 (and compatible)
Fedora 35
Mandatory Requirements
On RHEL-compatible systems, enable the EPEL repository. This can be done using the linuxfabrik.lfops.repo_epel role.
Install git. This can be done using the linuxfabrik.lfops.git role.
Install nodejs. This can be done using the linuxfabrik.lfops.nodejs role.
Enable the MongoDB repository. This can be done using the linuxfabrik.lfops.repo_mongodb role.
Install MongoDB and configure a replica set. This can be done using the linuxfabrik.lfops.mongodb role.
Create a MongoDB user for Rocket.Chat. Mandatory when authentication in MongoDB is enabled. This can be done using the linuxfabrik.lfops.mongodb role.
If you use the „Setup Rocket.Chat“ Playbook, thinstallation is automatically done for you (you still have to take care of providing the required versions).
Mandatory Role Variables
Variable |
Description |
---|---|
|
The user account for accessing the MongoDB database. Mandatory when authentication in MongoDB is enabled. |
|
The required NPM version for the Rocket.Chat version. Have a look at the release page. (Sadly this value is not available via the releases.rocket.chat api). |
|
The URL on which the Rocket.Chat server will be available. |
Example:
# mandatory
rocketchat__mongodb_login:
username: 'rocketchat'
password: 'linuxfabrik'
rocketchat__npm_version: '6.14.17'
rocketchat__root_url: 'https://rocketchat.example.com'
Optional Role Variables
Variable |
Description |
Default Value |
---|---|---|
|
The directory in which Rocket.Chat should be installed. |
|
|
The host on which MongoDB is reachable. |
|
|
The port on which MongoDB is reachable. |
|
|
The name of the MongoDB replica set for Rocket.Chat. |
|
|
The port on which Rocket.Chat server will be available. |
|
|
Enables or disables the service, analogous to |
|
|
Changes the state of the service, analogous to |
|
|
Which Rocket.Chat version to install. Have a at the available releases. |
|
Example:
# optional
rocketchat__application_path: /opt/Rocket.Chat
rocketchat__mongodb_host: 'localhost'
rocketchat__mongodb_port: 27017
rocketchat__mongodb_repl_set_name: 'rs01'
rocketchat__port: 3000
rocketchat__service_enabled: true
rocketchat__service_state: 'started'
# Versions according to https://github.com/RocketChat/Rocket.Chat/releases
rocketchat__version: 'latest'