Skip to content
Snippets Groups Projects
Commit 242016bf authored by Jeroen Nijhof's avatar Jeroen Nijhof
Browse files

Add log option for cronjob output

parent d2c7c732
No related branches found
No related tags found
1 merge request!43Add log option for cronjob output
# 0.3.14
- Add log option for cronjob
# 0.3.13
 
- Add pre_command for backup cronjob
Loading
Loading
Loading
Loading
@@ -40,7 +40,8 @@ default['omnibus-gitlab']['skip_auto_migrations'] = false
default['omnibus-gitlab']['munin_sidekiq_postreceive']['window_size'] = 100
 
default['omnibus-gitlab']['backup_cron_job']['skip'] = []
default['omnibus-gitlab']['backup_cron_job']['silent'] = true
default['omnibus-gitlab']['backup_cron_job']['silent'] = false
default['omnibus-gitlab']['backup_cron_job']['log'] = nil
default['omnibus-gitlab']['backup_cron_job']['hour'] = '0'
default['omnibus-gitlab']['backup_cron_job']['minute'] = '30'
default['omnibus-gitlab']['backup_cron_job']['weekday'] = nil # defaults to '*', every day
Loading
Loading
Loading
Loading
@@ -4,7 +4,7 @@ maintainer_email 'marin@gitlab.com'
license 'All rights reserved'
description 'Installs/Configures GitLab using omnibus-gitlab'
long_description 'Installs/Configures GitLab using omnibus-gitlab'
version '0.3.13'
version '0.3.14'
issues_url 'https://gitlab.com/gitlab-org/cookbook-omnibus-gitlab/issues'
source_url 'https://gitlab.com/gitlab-org/cookbook-omnibus-gitlab/'
 
Loading
Loading
Loading
Loading
@@ -18,6 +18,7 @@ if backup_cron_job['skip'].any?
end
 
options << ' CRON=1' if backup_cron_job['silent']
options << " >#{backup_cron_job['log']} 2>&1" if backup_cron_job['log']
 
cron 'GitLab backup' do
command "#{pre_command}/opt/gitlab/bin/gitlab-rake gitlab:backup:create #{options}"
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment