forked from msolovyov/chef-solo
-
Notifications
You must be signed in to change notification settings - Fork 5
/
solo.rb
21 lines (19 loc) · 722 Bytes
/
solo.rb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#
# Be able to have custom private chef-solo configuration.
#
# 2 variables define location of the chef-solo configuration:
#
# CHEF_SOLO_PROFILE_ROOT - absolute path, if not provided current directory is used
#
# CHEF_SOLO_PROFILE - if name of the profile provided subdirectory
# under ./profiles/ is used as base.
#
root = ENV["CHEF_SOLO_PROFILE_ROOT"] || File.absolute_path(File.dirname(__FILE__))
root << "profiles/#{ENV["CHEF_SOLO_PROFILE"]}" if ENV["CHEF_SOLO_PROFILE"]
file_cache_path root
cookbook_path ["#{root}/cookbooks", "#{root}/site-cookbooks"]
role_path "#{root}/roles"
data_bag_path "#{root}/data_bags"
#Valid log_level's debug, info, warn, error, or fatal
log_level :fatal
log_location STDOUT