LoginSignup
12
16

More than 5 years have passed since last update.

GitLab Mattermostを入れてみた

Last updated at Posted at 2015-12-27

GitLab Mattermost

Mattermostはオンプレミスでも利用可能なオープンソースのSlackクローンです。
GitLab 7.14のOmnibus packageからMattermostが含まれるようになりました。
GitLabの認証システムを使用できるため、LDAP認証などをMattermostで使えるようになります。

環境

インストール

GitLabのダウンロードページを参考に、Omnibus packageをインストールします。
Mattermostもインストールされますが、デフォルトでは無効化されています。

設定

GitLabとMattermostの設定は/etc/gitlab/gitlab.rbに書きます。

GitLabの設定

external_urlにGitLabのアドレスを指定します。
ここを設定しないと、MattermostでGitLabのSSOが使えません。

# /etc/gitlab/gitlab.rb
external_url 'http://gitlab.yourdomain'

Mattermostの設定

GitLab MattermostのDocumentを参考にMattermostを有効化します。
上のリンクでは、1つのサーバー環境でGitLabとMattermostを運用する場合はそれぞれにドメインを用意するよう書かれていますが、同じドメインで別のポートを指定することもできるため、今回はそちらを使用します。

# /etc/gitlab/gitlab.rb
mattermost_external_url 'http://gitlab.yourdomain:9999'

設定が完了したら、sudo gitlab-ctl reconfigureを2回実行します。

http://gitlab.yourdomain:9999 を開いてMattermostのページが表示されたらとりあえずの設定は完了です。

2015-12-27_21h51_15.png

12
16
2

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
12
16