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

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).

Tags

Tag

What it does

rocketchat

Installs Rocket.Chat

rocketchat:update

Updates Rocket.Chat to the specified version

Mandatory Role Variables

Variable

Description

rocketchat__mongodb_login

The user account for accessing the MongoDB database. Mandatory when authentication in MongoDB is enabled.

rocketchat__npm_version

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).

rocketchat__root_url

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

rocketchat__application_path

The directory in which Rocket.Chat should be installed.

/opt/Rocket.Chat

rocketchat__mongodb_host

The host on which MongoDB is reachable.

'localhost'

rocketchat__mongodb_port

The port on which MongoDB is reachable.

27017

rocketchat__mongodb_repl_set_name

The name of the MongoDB replica set for Rocket.Chat.

'rs01'

rocketchat__port

The port on which Rocket.Chat server will be available.

3000

rocketchat__service_enabled

Enables or disables the service, analogous to systemctl enable/disable.

true

rocketchat__service_state

Changes the state of the service, analogous to systemctl start/stop/restart/reload. Possible options:
* started
* stopped
* restarted
* reloaded

'started'

rocketchat__version

Which Rocket.Chat version to install. Have a at the available releases.

'latest'

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'

License

The Unlicense

Author Information

Linuxfabrik GmbH, Zurich