Remove the need for manual config edit on first installation
When you install the package at the moment, we unpack the package and print a message notifying user of the need to edit /etc/gitlab/gitlab.rb
and only then to run reconfigure. Our installation page does not full reflect that fact still.
We can think of simplifying this further.
My suggestion is to ask the user to supply the external url when they type apt-get install
. For example, this could be done with:
GITLAB_URL=http://something.example.com apt-get install gitlab-ee
We could then in our postinst
:
- Check for the existence of this variable
- If it is set, prefill
external_url
with it - Automatically run reconfigure
- Print the message that GitLab is reachable at http://something.example.com
This would also reduce the size of our installation page where you would only need to:
- install dependencies
- add package repo and do install the package
- Visit the url
< joke > easy as 1, 2, 3 < /joke>
/cc @gitlab-build-team @joshlambert
Related issue https://gitlab.com/gitlab-org/omnibus-gitlab/issues/2617