Setting up GitLab omnibus to use pre-existing user accounts

422 views
Skip to first unread message

Benjamin Flynn

unread,
Mar 17, 2015, 1:25:24 PM3/17/15
to gitl...@googlegroups.com
I am trying to set up GitLab Omnibus on an Ubuntu linux box. I cannot create new users on this box, but there is an existing user account I can use to run services with. I tried setting the gitlab.rb config file to use this user, but it appears that the reconfigure command tries to create this user anyway, then fails.

Let's call this user 'specialuser'. How can GitLab be configured to have all its processes (nginx, rails, etc) run as 'specialuser'?

Thanks for your help!

Achilleas Pipinellis

unread,
Mar 18, 2015, 9:19:26 AM3/18/15
to gitl...@googlegroups.com
Use these settings

https://gitlab.com/gitlab-org/omnibus-gitlab/blob/bf52acc37b2a88f55309f48f9a40156aa6e03993/files/gitlab-config-template/gitlab.rb.template#L190

Not all services are run by the same user, though. Nginx uses its own
for example.

--
GPG : 0x3A7DDABC985EDC6E
Blog: http://axilleas.me

Benjamin Flynn

unread,
Mar 18, 2015, 11:11:29 AM3/18/15
to gitl...@googlegroups.com
I did try changing those settings before posting here. ;-)

What I find is that if I switch the gitlab user to an existing user that the reconfigure task fails when it tries to create the gitlab user. I did choose a UID and a GID for the user and I did not actually point it to the users home directory. I'll play with these settings.

- Ben

Benjamin Flynn

unread,
Mar 18, 2015, 11:23:40 AM3/18/15
to gitl...@googlegroups.com
Ok, I just commented out the Ruby block in each script that creates the user. It seems to be up and running now.

--
You received this message because you are subscribed to a topic in the Google Groups "GitLab" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/gitlabhq/sqcsc17ylOg/unsubscribe.
To unsubscribe from this group and all its topics, send an email to gitlabhq+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/gitlabhq/417c4607-e42f-4c8f-aa51-5c93aba16c5d%40googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

Achilleas Pipinellis

unread,
Mar 19, 2015, 4:30:34 AM3/19/15
to gitl...@googlegroups.com
On 03/18/2015 05:23 PM, Benjamin Flynn wrote:
> Ok, I just commented out the Ruby block in each script that creates the
> user. It seems to be up and running now.
>

Hmmm, this should not be necessary. Although I never tried this setting,
it should in theory work.

Care to open an issue in
https://gitlab.com/gitlab-org/omnibus-gitlab/issues and describe how to
reproduce?

Thanks!
Reply all
Reply to author
Forward
0 new messages