Commit d864f7e8e717c848cc8397ca5695fdb2441f442e
Exists in
master
and in
4 other branches
Merge branch 'repository_downloads_path' into 'master'
Support the repository_downloads_path setting
Showing
4 changed files
with
5 additions
and
2 deletions
Show diff stats
CHANGELOG
... | ... | @@ -15,6 +15,7 @@ omnibus-gitlab repository. |
15 | 15 | - Only reject SMTP attributes which are nil |
16 | 16 | - Support changing the 'restricted_visibility_levels' option (Javier Palomo) |
17 | 17 | - Only start omnibus-gitlab services after a given filesystem is mounted |
18 | +- Support the repository_downloads_path setting in gitlab.yml | |
18 | 19 | |
19 | 20 | 7.0.0-ee.omnibus.1 |
20 | 21 | - Fix MySQL build for Ubuntu 14.04 | ... | ... |
files/gitlab-cookbooks/gitlab/attributes/default.rb
... | ... | @@ -67,6 +67,7 @@ default['gitlab']['gitlab-rails']['gitlab_default_projects_features_wiki'] = tru |
67 | 67 | default['gitlab']['gitlab-rails']['gitlab_default_projects_features_wall'] = false |
68 | 68 | default['gitlab']['gitlab-rails']['gitlab_default_projects_features_snippets'] = false |
69 | 69 | default['gitlab']['gitlab-rails']['gitlab_default_projects_features_visibility_level'] = "private" |
70 | +default['gitlab']['gitlab-rails']['gitlab_repository_downloads_path'] = nil | |
70 | 71 | default['gitlab']['gitlab-rails']['issues_tracker_redmine'] = false |
71 | 72 | default['gitlab']['gitlab-rails']['issues_tracker_redmine_title'] = "Redmine" |
72 | 73 | default['gitlab']['gitlab-rails']['issues_tracker_redmine_project_url'] = "http://redmine.sample/projects/:issues_tracker_id" | ... | ... |
files/gitlab-cookbooks/gitlab/recipes/gitlab-rails.rb
... | ... | @@ -31,8 +31,9 @@ gitlab_rails_log_dir = node['gitlab']['gitlab-rails']['log_directory'] |
31 | 31 | gitlab_rails_tmp_dir, |
32 | 32 | gitlab_rails_public_uploads_dir, |
33 | 33 | node['gitlab']['gitlab-rails']['backup_path'], |
34 | + node['gitlab']['gitlab-rails']['gitlab_repository_downloads_path'], | |
34 | 35 | gitlab_rails_log_dir |
35 | -].each do |dir_name| | |
36 | +].compact.each do |dir_name| | |
36 | 37 | directory dir_name do |
37 | 38 | owner node['gitlab']['user']['username'] |
38 | 39 | mode '0700' | ... | ... |
files/gitlab-cookbooks/gitlab/templates/default/gitlab.yml.erb
... | ... | @@ -74,7 +74,7 @@ production: &base |
74 | 74 | ## Repository downloads directory |
75 | 75 | # When a user clicks e.g. 'Download zip' on a project, a temporary zip file is created in the following directory. |
76 | 76 | # The default is 'tmp/repositories' relative to the root of the Rails app. |
77 | - # repository_downloads_path: tmp/repositories | |
77 | + repository_downloads_path: <%= @gitlab_repository_downloads_path %> | |
78 | 78 | |
79 | 79 | ## External issues trackers |
80 | 80 | issues_tracker: | ... | ... |