xtream1101.mattermost

Rôle Ansible Mattermost

Ce rôle installera un serveur de chat Mattermost sur Ubuntu 18.04 avec un proxy nginx.
Il prend en charge http ou https via un certificat lets encrypt.
Il est configuré pour se connecter à une base de données postgresql qui n'est pas incluse dans ce rôle.

Autres rôles utilisés

nginxinc.nginx

Source : https://galaxy.ansible.com/nginxinc/nginx
Utilisé comme serveur proxy.

clutterbox.dehydrated

Source : https://galaxy.ansible.com/clutterbox/dehydrated
Utilisé pour générer les certificats si la variable mattermost_http_type est définie sur https.

Exemples de playbooks

Installer Mattermost sans SSL en utilisant une base de données externe

---
- name: Créer un serveur Mattermost
  hosts: mattermost
  become: true
  vars:
    mattermost_domain: "mattermost.example.com"
    mattermost_http_type: "http"
    mattermost_db_host: "SOME_HOST/IP_ICI"
    mattermost_db_name: "mattermost"
    mattermost_db_user: "mmuser"
    mattermost_db_pass: "secret"

  roles:
    - xtream1101.mattermost

Installer Mattermost avec une base de données PostgreSQL et utiliser des certificats letsencrypt

- name: Créer un serveur Mattermost
  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
À propos du projet

Role to deploy Mattermost

Installer
ansible-galaxy install xtream1101.mattermost
Licence
mit
Téléchargements
163
Propriétaire