xtream1101.mattermost

Mattermost Ansibleロール

このロールは、nginxプロキシを使用して、Ubuntu 18.04にMattermostチャットサーバーをインストールします。
httpまたはhttpsに対応しており、let's encrypt証明書を使用します。
このロールには含まれていないPostgreSQLデータベースに接続するように設定されています。

使用される他のロール

nginxinc.nginx

ソース: https://galaxy.ansible.com/nginxinc/nginx
プロキシサーバーとして使用

clutterbox.dehydrated

ソース: https://galaxy.ansible.com/clutterbox/dehydrated
mattermost_http_typehttpsに設定されている場合に証明書を生成するために使用

例のプレイブック

外部データベースを使用してSSLなしでMattermostをインストール

---
- name: Mattermostサーバーの作成
  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

PostgreSQLデータベースと一緒にMattermostをインストールし、letsencrypt証明書を使用

- name: 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
プロジェクトについて

Role to deploy Mattermost

インストール
ansible-galaxy install xtream1101.mattermost
ライセンス
mit
ダウンロード
163
所有者