Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
G
gitlab
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
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
infra
ansible
roles
gitlab
Commits
2ffe6441
Verified
Commit
2ffe6441
authored
Dec 10, 2020
by
psy
Browse files
Options
Downloads
Patches
Plain Diff
add config option to change registry path
parent
de8315c9
No related branches found
No related tags found
No related merge requests found
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
README.md
+3
-0
3 additions, 0 deletions
README.md
defaults/main.yml
+1
-0
1 addition, 0 deletions
defaults/main.yml
templates/gitlab.rb.j2
+3
-0
3 additions, 0 deletions
templates/gitlab.rb.j2
with
7 additions
and
0 deletions
README.md
+
3
−
0
View file @
2ffe6441
...
...
@@ -34,6 +34,9 @@ external_url: 'https://localhost'
# external url for gitlab pages, set to Null to disable
pages_external_url: ~
# alternative storage path for registry, set to Null to disable
registry_path: ~
# external url for the container registry, set to Null to disable
registry_external_url: ~
...
...
This diff is collapsed.
Click to expand it.
defaults/main.yml
+
1
−
0
View file @
2ffe6441
...
...
@@ -6,6 +6,7 @@ gitlab:
external_url
:
'
https://localhost'
path
:
'
/var/opt/gitlab/backups'
pages_external_url
:
~
registry_path
:
~
registry_external_url
:
~
gitlab_ssh_host
:
'
localhost'
gitlab_shell_ssh_port
:
22
...
...
This diff is collapsed.
Click to expand it.
templates/gitlab.rb.j2
+
3
−
0
View file @
2ffe6441
...
...
@@ -651,6 +651,9 @@ gitlab_rails['registry_enabled'] = true
# gitlab_rails['registry_port'] = "5000"
# gitlab_rails['registry_path'] = "/var/opt/gitlab/gitlab-rails/shared/registry"
{% if gitlab.registry_path %}
gitlab_rails['registry_path'] = "{{ gitlab.registry_path }}"
# Notification secret, it's used to authenticate notification requests to GitLab application
# You only need to change this when you use external Registry service, otherwise
# it will be taken directly from notification settings of your Registry
...
...
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
sign in
to comment