Merge branch 'omni-reconfigure' into 'master'

create logging dir for chef-solo explicitly

Closes #2164

See merge request !1437
This commit is contained in:
Marin Jankovski 2017-04-25 12:00:52 +00:00
commit 9654cfe395
1 changed files with 3 additions and 1 deletions

View File

@ -1,11 +1,13 @@
CURRENT_PATH = File.expand_path(File.dirname(__FILE__))
TIME = Time.now.to_i
LOG_PATH = '/var/log/gitlab/reconfigure'
Dir.exists?(LOG_PATH) || FileUtils.mkdir_p(LOG_PATH)
file_cache_path "#{CURRENT_PATH}/cache"
cookbook_path CURRENT_PATH
cache_path "#{CURRENT_PATH}/cache"
verbose_logging false
ssl_verify_mode :verify_peer
log_location "/var/log/gitlab/reconfigure/#{TIME}.log"
log_location "#{LOG_PATH}/#{TIME}.log"
log_level :info
# Omnibus-GitLab only needs to know very little about the system it is running
# on. We want to disable as many Ohai plugins as we can to avoid plugin bugs