Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Adding a omniauth-gem to a omnibus GitLab installation

I am not very experienced with ruby in general and trying to install a new omniauth provider in the GitLab Community Edition. I used the omnibus package to install it on Ubuntu 14.04. The goal is to authenticate GitLab against a Jasig CAS

According to Custom omniauth provider configurations doc the next step to make this work would be to add the according gem to the gemfile with "gem 'omniauth-cas'".

Is this even possible with the installed omnibus package? Or do I have to install it again manually? I don't see any gemfile in the installation directory, which i suppose to be somewhere down /var/opt/gitlab?

Thank you, everyone!

like image 354
mailman Avatar asked Mar 03 '15 12:03

mailman


People also ask

What is GitLab Omnibus installation?

Omnibus GitLab is a way to package different services and tools required to run GitLab, so that most users can install it without laborious configuration.

What is an OmniAuth provider?

OmniAuth is a "generalized Rack framework for multiple-provider authentication" built on Ruby. Configuring OmniAuth does not prevent standard GitLab authentication or LDAP (if configured) from continuing to work. Users can choose to sign in using any of the configured mechanisms.


1 Answers

You can't do that with the classic installation.

You need to download sources and install Gitlab manually in order to change the Gemfile.

Otherwise like Leo said the gitlab-ctl reconfigure will override your changes.

This command uses /etc/gitlab/gitlab.rb configuration and overrides everything.

like image 170
gdurelle Avatar answered Nov 15 '22 03:11

gdurelle