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
9ad6b1b6
Verified
Commit
9ad6b1b6
authored
3 years ago
by
nd
Browse files
Options
Downloads
Patches
Plain Diff
allow to override artifacts_path
parent
5e2ff023
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
+4
-1
4 additions, 1 deletion
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
8 additions
and
1 deletion
README.md
+
4
−
1
View file @
9ad6b1b6
...
...
@@ -43,9 +43,12 @@ pages_listen_proxy: ''
# external url for the container registry, set to Null to disable
registry_external_url: ~
# alternative storage path for registry, only considere when registry_external_url is set.
s
et to Null to use defaults
# alternative storage path for registry, only considere when registry_external_url is set.
S
et to Null to use defaults
registry_path: ~
# alternative storage path for artifacts. Set to Null to use defaults
artifacts_path: ~
# external ssh host, can be different from external_url
gitlab_ssh_host: 'localhost'
...
...
This diff is collapsed.
Click to expand it.
defaults/main.yml
+
1
−
0
View file @
9ad6b1b6
...
...
@@ -11,6 +11,7 @@ gitlab:
pages_listen_proxy
:
'
localhost:11181'
registry_path
:
~
registry_external_url
:
~
artifacts_path
:
~
gitlab_ssh_host
:
'
localhost'
gitlab_shell_ssh_port
:
22
initial_root_password
:
"
{{
lookup('password',
'/dev/null
length=64')
}}"
...
...
This diff is collapsed.
Click to expand it.
templates/gitlab.rb.j2
+
3
−
0
View file @
9ad6b1b6
...
...
@@ -231,6 +231,9 @@ gitlab_rails['gitlab_username_changing_enabled'] = false
### Job Artifacts
# gitlab_rails['artifacts_enabled'] = true
# gitlab_rails['artifacts_path'] = "/var/opt/gitlab/gitlab-rails/shared/artifacts"
{% if gitlab.artifacts_path %}
gitlab_rails['artifacts_path'] = "{{ gitlab.artifacts_path }}"
{% endif %}
####! Job artifacts Object Store
####! Docs: https://docs.gitlab.com/ee/administration/job_artifacts.html#using-object-storage
# gitlab_rails['artifacts_object_store_enabled'] = false
...
...
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