Commit f60dec5d9efea334a89a3d332793213822eeaf1d
1 parent
8f1d1be1
Exists in
master
and in
15 other branches
Allow setting of backup keep_time in gitlab.rb
Showing
2 changed files
with
2 additions
and
1 deletions
Show diff stats
files/gitlab-cookbooks/gitlab/attributes/default.rb
| ... | ... | @@ -90,6 +90,7 @@ default['gitlab']['gitlab-rails']['ldap_user_filter'] = "" |
| 90 | 90 | default['gitlab']['gitlab-rails']['ldap_group_base'] = "" |
| 91 | 91 | default['gitlab']['gitlab-rails']['satellites_path'] = "/var/opt/gitlab/git-data/gitlab-satellites" |
| 92 | 92 | default['gitlab']['gitlab-rails']['backup_path'] = "/var/opt/gitlab/backups" |
| 93 | +default['gitlab']['gitlab-rails']['backup_keep_time'] = 0 | |
| 93 | 94 | default['gitlab']['gitlab-rails']['gitlab_shell_path'] = "/opt/gitlab/embedded/service/gitlab-shell/" |
| 94 | 95 | default['gitlab']['gitlab-rails']['gitlab_shell_repos_path'] = "/var/opt/gitlab/git-data/repositories" |
| 95 | 96 | default['gitlab']['gitlab-rails']['gitlab_shell_hooks_path'] = "/opt/gitlab/embedded/service/gitlab-shell/hooks/" | ... | ... |
files/gitlab-cookbooks/gitlab/templates/default/gitlab.yml.erb
| ... | ... | @@ -197,7 +197,7 @@ production: &base |
| 197 | 197 | ## Backup settings |
| 198 | 198 | backup: |
| 199 | 199 | path: "<%= @backup_path %>" # Relative paths are relative to Rails.root (default: tmp/backups/) |
| 200 | - # keep_time: 604800 # default: 0 (forever) (in seconds) | |
| 200 | + keep_time: <%= @backup_keep_time %> # default: 0 (forever) (in seconds) | |
| 201 | 201 | |
| 202 | 202 | ## GitLab Shell settings |
| 203 | 203 | gitlab_shell: | ... | ... |