-
Notifications
You must be signed in to change notification settings - Fork 0
/
solo.rb
62 lines (48 loc) · 2.31 KB
/
solo.rb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
# Configuration File For Chef Solo (chef-solo)
#
# The program chef-solo allows you to run Chef as a standalone program
# without connecting to a remote Chef Server.
#
# When invoked without the -c option, chef-solo reads this file by default,
# otherwise it reads the specified file for configuration.
#
# It is a Ruby DSL config file, and can embed regular Ruby code in addition to
# the configuration settings. Some settings use Ruby symbols, which are a value
# that starts with a colon. In Ruby, anything but 'false' or 'nil' is true. To
# set something to false:
#
# some_setting false
#
# log_level specifies the level of verbosity for output.
# valid values are: :debug, :info, :warn, :error, :fatal
# Corresponds to chef-solo -l
log_level :info
# log_location specifies where the client should log to.
# valid values are: a quoted string specifying a file, or STDOUT with
# no quotes.
# Corresponds to chef-solo -L
log_location STDOUT #"/var/log/chef/solo.log"
# file_cache_path specifies where solo should look for the cookbooks to use
# valid value is any filesystem directory location. This is slightly
# different from 'normal' client mode as solo is actually downloading (or
# using) the specified cookbooks in this location.
file_cache_path "/var/chef/cache"
# cookbook_path specifies where solo should look for cookbooks it will use.
# valid value is a string, or array of strings of filesystem directory locations.
# This setting is similar to the server setting of the same name. Solo will use
# this as a search location, in Array order. It should be a subdirectory of
# file_cache_path, above.
cookbook_path [ "/var/chef/cookbooks" ]
# recipe_url specifies a remote URL to retrieve a tarball of cookbooks.
# Corresponds to chef-solo -r
#recipe_url "http://www.example.com/chef/cookbooks.tar.gz"
# json_attribs specifies a local or remote JSON data file that specifies
# attributes and a run_list that Chef will use to configure the system.
# Corresponds to chef-solo -j
#json_attribs "/var/tmp/node.json"
#json_attribs "http://www.example.com/chef/node.json"
# Mixlib::Log::Formatter.show_time specifies whether the log should
# contain timestamps.
# valid values are true or false. The printed timestamp is rfc2822, for example:
# Fri, 31 Jul 2009 19:19:46 -0600
Mixlib::Log::Formatter.show_time = true