Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
omnibus-heptapod
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Admin message
This instance will be upgraded to Heptapod 17.9.0rc1 on 2025-03-27 between 17:00 and 18:00 UTC+2
Show more breadcrumbs
heptapod
omnibus-heptapod
Commits
a7bf1186369e
Commit
a7bf1186369e
authored
10 years ago
by
Jacob Vosmaer
Browse files
Options
Downloads
Patches
Plain Diff
Create doc/settings/gitlab.yml.md
parent
40f9a5007407
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
README.md
+1
-30
1 addition, 30 deletions
README.md
doc/settings/README.md
+1
-0
1 addition, 0 deletions
doc/settings/README.md
doc/settings/gitlab.yml.md
+42
-0
42 additions, 0 deletions
doc/settings/gitlab.yml.md
with
44 additions
and
30 deletions
README.md
+
1
−
30
View file @
a7bf1186
...
...
@@ -531,35 +531,7 @@
### Changing gitlab.yml settings
Some of GitLab's features can be customized through
[
gitlab.yml
][
gitlab.yml.example
]
. If you want to change a
`gitlab.yml`
setting
with omnibus-gitlab, you need to do so via
`/etc/gitlab/gitlab.rb`
. The
translation works as follows.
In
`gitlab.yml`
, you will find structure like this:
```
yaml
production
:
&base
gitlab
:
default_projects_limit
:
10
```
In
`gitlab.rb`
, this translates to:
```
ruby
gitlab_rails
[
'gitlab_default_projects_limit'
]
=
10
```
What happens here is that we forget about
`production: &base`
, and join
`gitlab:`
with
`default_projects_limit:`
into
`gitlab_default_projects_limit`
.
Note that not all
`gitlab.yml`
settings can be changed via
`gitlab.rb`
yet; see
the
[
gitlab.yml ERB template
][
gitlab.yml.erb
]
. If you think an attribute is
missing please create a merge request on the omnibus-gitlab repository.
Run
`sudo gitlab-ctl reconfigure`
for changes in
`gitlab.rb`
to take effect.
Do not edit the generated file in
`/var/opt/gitlab/gitlab-rails/etc/gitlab.yml`
since it will be overwritten on the next
`gitlab-ctl reconfigure`
run.
See
[
doc/settings/gitlab.yml.md
](
doc/settings/gitlab.yml.md
)
.
### Specify numeric user and group identifiers
...
...
@@ -1055,6 +1027,5 @@
[
gitlab.yml.erb
]:
https://gitlab.com/gitlab-org/omnibus-gitlab/blob/master/files/gitlab-cookbooks/gitlab/templates/default/gitlab.yml.erb
[
database.yml.postgresql
]:
https://gitlab.com/gitlab-org/gitlab-ce/blob/master/config/database.yml.postgresql
[
database.yml.mysql
]:
https://gitlab.com/gitlab-org/gitlab-ce/blob/master/config/database.yml.mysql
[
gitlab.yml.example
]:
https://gitlab.com/gitlab-org/gitlab-ce/blob/master/config/gitlab.yml.example
[
svlogd
]:
http://smarden.org/runit/svlogd.8.html
[
installation
]:
https://about.gitlab.com/installation/
This diff is collapsed.
Click to expand it.
doc/settings/README.md
+
1
−
0
View file @
a7bf1186
...
...
@@ -3,3 +3,4 @@
-
[
SMTP
](
smtp.md
)
-
[
Unicorn
](
unicorn.md
)
-
[
Environment variables
](
environment-variables.md
)
.
-
[
gitlab.yml
](
gitlab.yml.md
)
This diff is collapsed.
Click to expand it.
doc/settings/gitlab.yml.md
0 → 100644
+
42
−
0
View file @
a7bf1186
# Changing gitlab.yml and application.yml settings
Some of GitLab's features can be customized through
[
gitlab.yml
][
gitlab.yml.example
]
and
[
application.yml (GitLab
CI)
][
application.yml.example
]
. If you want to change a
`gitlab.yml`
setting
with omnibus-gitlab, you need to do so via
`/etc/gitlab/gitlab.rb`
. The
translation works as follows.
In
`gitlab.yml`
, you will find structure like this:
```
yaml
production
:
&base
gitlab
:
default_projects_limit
:
10
```
In
`gitlab.rb`
, this translates to:
```
ruby
gitlab_rails
[
'gitlab_default_projects_limit'
]
=
10
```
What happens here is that we forget about
`production: &base`
, and join
`gitlab:`
with
`default_projects_limit:`
into
`gitlab_default_projects_limit`
.
Note that not all
`gitlab.yml`
settings can be changed via
`gitlab.rb`
yet; see
the
[
gitlab.yml ERB template
][
gitlab.yml.erb
]
. If you think an attribute is
missing please create a merge request on the omnibus-gitlab repository.
The same principle applies to GitLab CI's
[
application.yml][application.yml.example
]:
```ruby
gitlab_ci['gitlab_ci_all_broken_builds'] = false
```
Run `sudo gitlab-ctl reconfigure` for changes in `gitlab.rb` to take effect.
Do not edit the generated file in `/var/opt/gitlab/gitlab-rails/etc/gitlab.yml`
since it will be overwritten on the next `gitlab-ctl reconfigure` run.
[gitlab.yml.example]: https://gitlab.com/gitlab-org/gitlab-ce/blob/master/config/gitlab.yml.example
[application.yml.example]: https://gitlab.com/gitlab-org/gitlab-ci/blob/master/config/application.yml.example
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment