xtream1101.mattermost

Mattermost Ansible Role

This role will install a Mattermost chat server on Ubuntu 18.04 using an nginx proxy.
It supports both http and https with a lets encrypt certificate.
This role connects to a postgresql database, which is not included here.

Other Roles in Use

nginxinc.nginx

Source: https://galaxy.ansible.com/nginxinc/nginx
This is used as the proxy server.

clutterbox.dehydrated

Source: https://galaxy.ansible.com/clutterbox/dehydrated
This is used to create certificates if mattermost_http_type is set to https.

Example Playbooks

Install Mattermost without SSL using an external database:

---
- name: Create a Mattermost server
  hosts: mattermost
  become: true
  vars:
    mattermost_domain: "mattermost.example.com"
    mattermost_http_type: "http"
    mattermost_db_host: "SOME_HOST/IP_HERE"
    mattermost_db_name: "mattermost"
    mattermost_db_user: "mmuser"
    mattermost_db_pass: "secret"

  roles:
    - xtream1101.mattermost

Install Mattermost with a PostgreSQL database and use LetsEncrypt certificates:

- name: Create a Mattermost server
  hosts: mattermost
  become: true
  vars:
    mattermost_domain: "mattermost.example.com"
    mattermost_http_type: "https"
    mattermost_db_name: "mattermost"
    mattermost_db_user: "mmuser"
    mattermost_db_pass: "secret"

    postgresql_databases:
      - name: "{{ mattermost_db_name }}"
    postgresql_users:
      - name: "{{ mattermost_db_user }}"
        password: "{{ mattermost_db_pass }}"

    dehydrated_accept_letsencrypt_terms: yes
    dehydrated_contactemail: [email protected]
    dehydrated_challengetype: dns-01
    dehydrated_lexicon_dns:
      LEXICON_CLOUDFLARE_USERNAME: [email protected]
      LEXICON_CLOUDFLARE_TOKEN: AHG87923...
    dehydrated_domains: |
      {{ mattermost_domain }}

  roles:
    - geerlingguy.postgresql
    - xtream1101.mattermost
Informazioni sul progetto

Role to deploy Mattermost

Installa
ansible-galaxy install xtream1101.mattermost
Licenza
mit
Download
163
Proprietario