It is not possible to disable GitLab Auth for Mattermost, when deploying GitLab and Mattermost on the same node
Package: gitlab-ce 8.11.3-ce.1
When setting mattermost['gitlab_enable'] = false
in /etc/gitlab/gitlab.rb
and deploying mattermost and gitlab-rails on the same node gitlab-ctl reconfigure
ignores this setting and configures mattermost to use the local gitlab instance for gitlab authentication.
The code responsible for this behaviour can be found here: https://gitlab.com/gitlab-org/omnibus-gitlab/blob/master/files/gitlab-cookbooks/gitlab/recipes/mattermost.rb#L97
unless node['gitlab']['mattermost']['gitlab_enable']
if node['gitlab']['gitlab-rails']['enable'] && database_ready
MattermostHelper.authorize_with_gitlab(Gitlab['external_url'])
end
end
This behaviour makes sense for people who did not set mattermost['gitlab_enable']
in their gitlab.rb
, but when this is option is explicitly disabled, it should be respected.
Thanks in advance.