Configuration options in gitlab.rb
Related to #356 (closed)
Merge request reports
Activity
Currently all settings are listed in
doc/settings/gitlab.rb.example
.The layout is as follows:
- Required section - lists the minimal settings required for gitlab to be setup
- Optional section - everything else
Inside of optional section we have:
- GitLab settings in order: gitlab.yml settings; application, database, smtp, redis and initialisers settings
- GitLab settings related to external services: users,gitlab-shell, unicorn, sidekiq, redis, database, nginx, logging
- CI settings in order: application.yml settings; database, smtp, redis
- CI settings related to external services: ci users, ci unicorn, ci sidekiq, ci redis, ci database, ci nginx
I am unsure if it would be better to have a different layout, maybe:
- GitLab: gitlab.yml and application, database etc settings
- GitLab CI: application.yml, database etc settings
- External services: users, database, redis etc.
First approach (the one in the MR) groups per GitLab, GitLab CI.
Second approach groups per service: GitLab, CI, database etc.
Since I am unsure which approach is more user friendly, I am open for suggestions.
@all
@marin Sorry, didn't see the WIP tag. I would advise against two levels (required, non-required). Just mark the url clearly as required (in title, add note that this is the only thing required). And comment out all the other options.
Thanks for this work @marin :)
I'm in favor of the second approach, list everything per service, but on the other hand we would have two databases, two redis, etc. for GitLab and GitLabCI, which could be confusing.
As for the optional settings, I agree with @sytses, comment out them. One good path would be to write description comments with double
##
and settings comments with one#
.Added 1 new commit:
- bb460c5d - Remove unecessary nesting in headers for example gitlab.rb.
Updated after discussion with @jacobvosmaer
Added 1 new commit:
- 336a75ec - Put headers into blocks.
Added 5 new commits:
Toggle commit list@marin Looks better. Consider having the comments outside of the # rectangles (just place them below the rectangle).
Added 1 new commit:
- 0bc9d55a - Move the comment blocks out of the headers.
mentioned in merge request !260 (closed)
mentioned in commit 6080f125
mentioned in merge request !263 (closed)