Gentoo Archives: gentoo-commits

From: "Benedikt Boehm (hollow)" <hollow@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in app-admin/chef/files: solo.rb client.rb
Date: Sat, 03 Jul 2010 12:36:15
Message-Id: 20100703123613.808D62CF3B@corvid.gentoo.org
1 hollow 10/07/03 12:36:13
2
3 Added: solo.rb client.rb
4 Log:
5 initial ebuild, thanks to Gábor Vészi
6 (Portage version: 2.2_rc67/cvs/Linux i686)
7
8 Revision Changes Path
9 1.1 app-admin/chef/files/solo.rb
10
11 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-admin/chef/files/solo.rb?rev=1.1&view=markup
12 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-admin/chef/files/solo.rb?rev=1.1&content-type=text/plain
13
14 Index: solo.rb
15 ===================================================================
16 # Configuration File For Chef Solo (chef-solo)
17 #
18 # The program chef-solo allows you to run Chef as a standalone program
19 # without connecting to a remote Chef Server.
20 #
21 # Chef uses a Ruby DSL for configuration, and this file may contain some
22 # Ruby idioms. First, symbols. These are designated by a colon sigil, ie,
23 # :value. Second, in Ruby, everything but false and nil (no quotes or other
24 # designations) is true, including true, the integer 0 and the string "false".
25 # So to set the value of a setting to false, write:
26 #
27 # some_setting false
28 #
29 # Third, Ruby class methods can be used, for example we tell the log to show
30 # the current time stamp with Mixlib::Log::Formatter.show_time, below.
31 #
32 # log_level specifies the level of verbosity for output.
33 # valid values are: :debug, :info, :warn, :error, :fatal
34
35 log_level :info
36
37 # log_location specifies where the client should log to.
38 # valid values are: a quoted string specifying a file, or STDOUT with
39 # no quotes.
40
41 log_location "/var/log/chef/solo.log"
42
43 # file_cache_path specifies where solo should look for the cookbooks to use
44 # valid value is any filesystem directory location. This is slightly
45 # different from 'normal' client mode as solo is actually downloading (or
46 # using) the specified cookbooks in this location.
47
48 file_cache_path "/var/lib/chef"
49
50 # cookbook_path specifies where solo should look for cookbooks it will use.
51 # valid value is a string, or array of strings of filesystem directory locations.
52 # This setting is similar to the server setting of the same name. Solo will use
53 # this as a search location, in Array order. It should be a subdirectory of
54 # file_cache_path, above.
55
56 cookbook_path [ "/var/lib/chef/cookbooks" ]
57
58 # Mixlib::Log::Formatter.show_time specifies whether the chef-client log should
59 # contain timestamps.
60 # valid values are true or false (no quotes, see above about Ruby idioms). The
61 # printed timestamp is rfc2822, for example:
62 # Fri, 31 Jul 2009 19:19:46 -0600
63
64 Mixlib::Log::Formatter.show_time = true
65
66
67
68 1.1 app-admin/chef/files/client.rb
69
70 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-admin/chef/files/client.rb?rev=1.1&view=markup
71 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-admin/chef/files/client.rb?rev=1.1&content-type=text/plain
72
73 Index: client.rb
74 ===================================================================
75 # Configuration File For Chef (chef-client)
76 #
77 # The chef-client program will connect the local system to the specified
78 # server URLs through a RESTful API to retrieve its configuration.
79 #
80 # By default, the client is configured to connect to a Chef Server
81 # running on the local system. Change this to reflect your environment.
82 #
83 # Chef uses a Ruby DSL for configuration, and this file contains a few
84 # Ruby idioms. First, symbols. These are designated by a colon sigil, ie,
85 # :value. Second, in Ruby, everything but false and nil (no quotes or other
86 # designations) is true, including true, the integer 0 and the string "false".
87 # So to set the value of a setting to false, write:
88 #
89 # some_setting false
90 #
91 # Third, Ruby class methods can be used, for example we tell the log to show
92 # the current time stamp with Chef::Log::Formatter.show_time, below.
93 #
94 # log_level specifies the level of verbosity for output.
95 # valid values are: :debug, :info, :warn, :error, :fatal
96
97 log_level :info
98
99 # log_location specifies where the client should log to.
100 # valid values are: a quoted string specifying a file, or STDOUT with
101 # no quotes. When run as a daemon (default), STDOUT will produce no output.
102
103 log_location "/var/log/chef/client.log"
104
105 # ssl_verify_mode specifies if the REST client should verify SSL certificates.
106 # valid values are :verify_none, :verify_peer. The default Chef Server
107 # installation will use a self-generated SSL certificate so this should be
108 # :verify_none unless you replace the certificate.
109
110 ssl_verify_mode :verify_none
111
112 # Server URLs.
113 #
114 # chef_server_url specifies the Chef Server to connect to.
115 # valid values are any HTTP URL (e.g. https://chef.example.com:4443).
116
117 chef_server_url "http://localhost:4000"
118
119 # file_cache_path specifies where the client should cache cookbooks, server
120 # cookie ID, and openid registration data.
121 # valid value is any filesystem directory location.
122
123 file_cache_path "/var/lib/chef/cache"
124
125 file_backup_path "/var/lib/chef/backup"
126
127 # pid_file specifies the location of where chef-client daemon should keep the pid
128 # file.
129 # valid value is any filesystem file location.
130
131 pid_file "/var/run/chef/client.pid"
132
133 # Mixlib::Log::Formatter.show_time specifies whether the chef-client
134 # log should contain timestamps. valid values are true or false (no
135 # quotes, see above about Ruby idioms). The printed timestamp is
136 # rfc2822, for example:
137 # Fri, 31 Jul 2009 19:19:46 -0600
138
139 Mixlib::Log::Formatter.show_time = true