chef 10.30.4 → 10.32.0.rc.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/distro/common/html/chef-client.8.html +4 -4
- data/distro/common/html/chef-expander.8.html +4 -4
- data/distro/common/html/chef-expanderctl.8.html +4 -4
- data/distro/common/html/chef-server-webui.8.html +4 -4
- data/distro/common/html/chef-server.8.html +4 -4
- data/distro/common/html/chef-solo.8.html +4 -4
- data/distro/common/html/chef-solr.8.html +5 -5
- data/distro/common/html/knife-bootstrap.1.html +4 -4
- data/distro/common/html/knife-client.1.html +4 -4
- data/distro/common/html/knife-configure.1.html +4 -4
- data/distro/common/html/knife-cookbook-site.1.html +4 -4
- data/distro/common/html/knife-cookbook.1.html +4 -4
- data/distro/common/html/knife-data-bag.1.html +4 -4
- data/distro/common/html/knife-environment.1.html +4 -4
- data/distro/common/html/knife-exec.1.html +4 -4
- data/distro/common/html/knife-index.1.html +4 -4
- data/distro/common/html/knife-node.1.html +4 -4
- data/distro/common/html/knife-role.1.html +4 -4
- data/distro/common/html/knife-search.1.html +4 -4
- data/distro/common/html/knife-ssh.1.html +4 -4
- data/distro/common/html/knife-status.1.html +4 -4
- data/distro/common/html/knife-tag.1.html +4 -4
- data/distro/common/html/knife.1.html +4 -4
- data/distro/common/html/shef.1.html +4 -4
- data/distro/common/man/man1/knife-bootstrap.1 +0 -201
- data/distro/common/man/man1/knife-client.1 +0 -99
- data/distro/common/man/man1/knife-configure.1 +0 -88
- data/distro/common/man/man1/knife-cookbook-site.1 +1 -1
- data/distro/common/man/man1/knife-cookbook.1 +1 -1
- data/distro/common/man/man1/knife-data-bag.1 +1 -1
- data/distro/common/man/man1/knife-environment.1 +1 -1
- data/distro/common/man/man1/knife-exec.1 +1 -1
- data/distro/common/man/man1/knife-index.1 +1 -1
- data/distro/common/man/man1/knife-node.1 +1 -1
- data/distro/common/man/man1/knife-role.1 +1 -1
- data/distro/common/man/man1/knife-search.1 +1 -1
- data/distro/common/man/man1/knife-ssh.1 +1 -1
- data/distro/common/man/man1/knife-status.1 +1 -1
- data/distro/common/man/man1/knife-tag.1 +1 -1
- data/distro/common/man/man1/knife.1 +1 -1
- data/distro/common/man/man1/shef.1 +1 -1
- data/distro/common/man/man8/chef-client.8 +1 -1
- data/distro/common/man/man8/chef-expander.8 +1 -1
- data/distro/common/man/man8/chef-expanderctl.8 +1 -1
- data/distro/common/man/man8/chef-server-webui.8 +1 -1
- data/distro/common/man/man8/chef-server.8 +1 -1
- data/distro/common/man/man8/chef-solo.8 +1 -1
- data/distro/common/man/man8/chef-solr.8 +1 -1
- data/lib/chef/api_client.rb +22 -0
- data/lib/chef/checksum_cache.rb +1 -1
- data/lib/chef/provider/service/macosx.rb +69 -15
- data/lib/chef/version.rb +1 -1
- data/spec/unit/api_client_spec.rb +58 -0
- data/spec/unit/provider/service/macosx_spec.rb +29 -11
- metadata +117 -171
@@ -265,11 +265,11 @@ www.example.com:</p>
|
|
265
265
|
|
266
266
|
<h2 id="AUTHOR">AUTHOR</h2>
|
267
267
|
|
268
|
-
<p> Chef was written by Adam Jacob <a href="m&#
|
268
|
+
<p> Chef was written by Adam Jacob <a href="mailto:adam@opscode.com" data-bare-link="true">adam@opscode.com</a> with many contributions from the community.</p>
|
269
269
|
|
270
270
|
<h2 id="DOCUMENTATION">DOCUMENTATION</h2>
|
271
271
|
|
272
|
-
<p> This manual page was written by Joshua Timberman <a href="m&#
|
272
|
+
<p> This manual page was written by Joshua Timberman <a href="mailto:joshua@opscode.com" data-bare-link="true">joshua@opscode.com</a>.
|
273
273
|
Permission is granted to copy, distribute and / or modify this document under the terms of the Apache 2.0 License.</p>
|
274
274
|
|
275
275
|
<h2 id="CHEF">CHEF</h2>
|
@@ -278,8 +278,8 @@ www.example.com:</p>
|
|
278
278
|
|
279
279
|
|
280
280
|
<ol class='man-decor man-foot man foot'>
|
281
|
-
<li class='tl'>Chef 10.
|
282
|
-
<li class='tc'>
|
281
|
+
<li class='tl'>Chef 10.32.0.rc.0</li>
|
282
|
+
<li class='tc'>March 2014</li>
|
283
283
|
<li class='tr'>knife-search(1)</li>
|
284
284
|
</ol>
|
285
285
|
|
@@ -133,11 +133,11 @@ option.</dd>
|
|
133
133
|
|
134
134
|
<h2 id="AUTHOR">AUTHOR</h2>
|
135
135
|
|
136
|
-
<p> Chef was written by Adam Jacob <a href="m&#
|
136
|
+
<p> Chef was written by Adam Jacob <a href="mailto:adam@opscode.com" data-bare-link="true">adam@opscode.com</a> with many contributions from the community.</p>
|
137
137
|
|
138
138
|
<h2 id="DOCUMENTATION">DOCUMENTATION</h2>
|
139
139
|
|
140
|
-
<p> This manual page was written by Joshua Timberman <a href="m&#
|
140
|
+
<p> This manual page was written by Joshua Timberman <a href="mailto:joshua@opscode.com" data-bare-link="true">joshua@opscode.com</a>.
|
141
141
|
Permission is granted to copy, distribute and / or modify this document under the terms of the Apache 2.0 License.</p>
|
142
142
|
|
143
143
|
<h2 id="CHEF">CHEF</h2>
|
@@ -146,8 +146,8 @@ option.</dd>
|
|
146
146
|
|
147
147
|
|
148
148
|
<ol class='man-decor man-foot man foot'>
|
149
|
-
<li class='tl'>Chef 10.
|
150
|
-
<li class='tc'>
|
149
|
+
<li class='tl'>Chef 10.32.0.rc.0</li>
|
150
|
+
<li class='tc'>March 2014</li>
|
151
151
|
<li class='tr'>knife-ssh(1)</li>
|
152
152
|
</ol>
|
153
153
|
|
@@ -105,11 +105,11 @@ may not be publicly reachable.</p>
|
|
105
105
|
|
106
106
|
<h2 id="AUTHOR">AUTHOR</h2>
|
107
107
|
|
108
|
-
<p> Chef was written by Adam Jacob <a href="&#
|
108
|
+
<p> Chef was written by Adam Jacob <a href="mailto:adam@opscode.com" data-bare-link="true">adam@opscode.com</a> with many contributions from the community.</p>
|
109
109
|
|
110
110
|
<h2 id="DOCUMENTATION">DOCUMENTATION</h2>
|
111
111
|
|
112
|
-
<p> This manual page was written by Joshua Timberman <a href="m&#
|
112
|
+
<p> This manual page was written by Joshua Timberman <a href="mailto:joshua@opscode.com" data-bare-link="true">joshua@opscode.com</a>.
|
113
113
|
Permission is granted to copy, distribute and / or modify this document under the terms of the Apache 2.0 License.</p>
|
114
114
|
|
115
115
|
<h2 id="CHEF">CHEF</h2>
|
@@ -118,8 +118,8 @@ may not be publicly reachable.</p>
|
|
118
118
|
|
119
119
|
|
120
120
|
<ol class='man-decor man-foot man foot'>
|
121
|
-
<li class='tl'>Chef 10.
|
122
|
-
<li class='tc'>
|
121
|
+
<li class='tl'>Chef 10.32.0.rc.0</li>
|
122
|
+
<li class='tc'>March 2014</li>
|
123
123
|
<li class='tr'>knife-status(1)</li>
|
124
124
|
</ol>
|
125
125
|
|
@@ -114,11 +114,11 @@
|
|
114
114
|
|
115
115
|
<h2 id="AUTHOR">AUTHOR</h2>
|
116
116
|
|
117
|
-
<p> Chef was written by Adam Jacob <a href="&#
|
117
|
+
<p> Chef was written by Adam Jacob <a href="mailto:adam@opscode.com" data-bare-link="true">adam@opscode.com</a> with many contributions from the community.</p>
|
118
118
|
|
119
119
|
<h2 id="DOCUMENTATION">DOCUMENTATION</h2>
|
120
120
|
|
121
|
-
<p> This manual page was written by Daniel DeLeo <a href="m&#
|
121
|
+
<p> This manual page was written by Daniel DeLeo <a href="mailto:dan@opscode.com" data-bare-link="true">dan@opscode.com</a>.
|
122
122
|
Permission is granted to copy, distribute and / or modify this document under the terms of the Apache 2.0 License.</p>
|
123
123
|
|
124
124
|
<h2 id="CHEF">CHEF</h2>
|
@@ -127,8 +127,8 @@
|
|
127
127
|
|
128
128
|
|
129
129
|
<ol class='man-decor man-foot man foot'>
|
130
|
-
<li class='tl'>Chef 10.
|
131
|
-
<li class='tc'>
|
130
|
+
<li class='tl'>Chef 10.32.0.rc.0</li>
|
131
|
+
<li class='tc'>March 2014</li>
|
132
132
|
<li class='tr'>knife-tag(1)</li>
|
133
133
|
</ol>
|
134
134
|
|
@@ -291,12 +291,12 @@ data editing entirely.</dd>
|
|
291
291
|
|
292
292
|
<h2 id="AUTHOR">AUTHOR</h2>
|
293
293
|
|
294
|
-
<p> Chef was written by Adam Jacob <a href="&#
|
294
|
+
<p> Chef was written by Adam Jacob <a href="mailto:adam@opscode.com" data-bare-link="true">adam@opscode.com</a> of Opscode
|
295
295
|
(<a href="http://www.opscode.com" data-bare-link="true">http://www.opscode.com</a>), with contributions from the community.</p>
|
296
296
|
|
297
297
|
<h2 id="DOCUMENTATION">DOCUMENTATION</h2>
|
298
298
|
|
299
|
-
<p> This manual page was written by Joshua Timberman <a href="&#
|
299
|
+
<p> This manual page was written by Joshua Timberman <a href="mailto:joshua@opscode.com" data-bare-link="true">joshua@opscode.com</a>.</p>
|
300
300
|
|
301
301
|
<h2 id="LICENSE">LICENSE</h2>
|
302
302
|
|
@@ -310,8 +310,8 @@ data editing entirely.</dd>
|
|
310
310
|
|
311
311
|
|
312
312
|
<ol class='man-decor man-foot man foot'>
|
313
|
-
<li class='tl'>Chef 10.
|
314
|
-
<li class='tc'>
|
313
|
+
<li class='tl'>Chef 10.32.0.rc.0</li>
|
314
|
+
<li class='tc'>March 2014</li>
|
315
315
|
<li class='tr'>knife(1)</li>
|
316
316
|
</ol>
|
317
317
|
|
@@ -258,12 +258,12 @@ and may become out of sync with the behavior of those libraries.</p>
|
|
258
258
|
|
259
259
|
<h2 id="AUTHOR">AUTHOR</h2>
|
260
260
|
|
261
|
-
<p> Chef was written by Adam Jacob <a href="&#
|
261
|
+
<p> Chef was written by Adam Jacob <a href="mailto:adam@opscode.com" data-bare-link="true">adam@opscode.com</a> with many
|
262
262
|
contributions from the community. Shef was written by Daniel DeLeo.</p>
|
263
263
|
|
264
264
|
<h2 id="DOCUMENTATION">DOCUMENTATION</h2>
|
265
265
|
|
266
|
-
<p> This manual page was written by Daniel DeLeo <a href="&#
|
266
|
+
<p> This manual page was written by Daniel DeLeo <a href="mailto:dan@opscode.com" data-bare-link="true">dan@opscode.com</a>.
|
267
267
|
Permission is granted to copy, distribute and / or modify this
|
268
268
|
document under the terms of the Apache 2.0 License.</p>
|
269
269
|
|
@@ -273,8 +273,8 @@ and may become out of sync with the behavior of those libraries.</p>
|
|
273
273
|
|
274
274
|
|
275
275
|
<ol class='man-decor man-foot man foot'>
|
276
|
-
<li class='tl'>Chef 10.
|
277
|
-
<li class='tc'>
|
276
|
+
<li class='tl'>Chef 10.32.0.rc.0</li>
|
277
|
+
<li class='tc'>March 2014</li>
|
278
278
|
<li class='tr'>shef(1)</li>
|
279
279
|
</ol>
|
280
280
|
|
@@ -1,201 +0,0 @@
|
|
1
|
-
.\" generated with Ronn/v0.7.3
|
2
|
-
.\" http://github.com/rtomayko/ronn/tree/0.7.3
|
3
|
-
.
|
4
|
-
.TH "KNIFE\-BOOTSTRAP" "1" "February 2014" "Chef 10.30.4" "Chef Manual"
|
5
|
-
.
|
6
|
-
.SH "NAME"
|
7
|
-
\fBknife\-bootstrap\fR \- Install Chef Client on a remote host
|
8
|
-
.
|
9
|
-
.SH "SYNOPSIS"
|
10
|
-
\fBknife\fR \fBbootstrap\fR \fI(options)\fR
|
11
|
-
.
|
12
|
-
.TP
|
13
|
-
\fB\-i\fR, \fB\-\-identity\-file IDENTITY_FILE\fR
|
14
|
-
The SSH identity file used for authentication
|
15
|
-
.
|
16
|
-
.TP
|
17
|
-
\fB\-N\fR, \fB\-\-node\-name NAME\fR
|
18
|
-
The Chef node name for your new node
|
19
|
-
.
|
20
|
-
.TP
|
21
|
-
\fB\-P\fR, \fB\-\-ssh\-password PASSWORD\fR
|
22
|
-
The ssh password
|
23
|
-
.
|
24
|
-
.TP
|
25
|
-
\fB\-x\fR, \fB\-\-ssh\-user USERNAME\fR
|
26
|
-
The ssh username
|
27
|
-
.
|
28
|
-
.TP
|
29
|
-
\fB\-p\fR, \fB\-\-ssh\-port PORT\fR
|
30
|
-
The ssh port
|
31
|
-
.
|
32
|
-
.TP
|
33
|
-
\fB\-\-bootstrap\-version VERSION\fR
|
34
|
-
The version of Chef to install
|
35
|
-
.
|
36
|
-
.TP
|
37
|
-
\fB\-\-bootstrap\-proxy PROXY_URL\fR
|
38
|
-
\fBThe proxy server for the node being bootstrapped\fR
|
39
|
-
.
|
40
|
-
.TP
|
41
|
-
\fB\-\-prerelease\fR
|
42
|
-
Install pre\-release Chef gems
|
43
|
-
.
|
44
|
-
.TP
|
45
|
-
\fB\-r\fR, \fB\-\-run\-list RUN_LIST\fR
|
46
|
-
Comma separated list of roles/recipes to apply
|
47
|
-
.
|
48
|
-
.TP
|
49
|
-
\fB\-\-template\-file TEMPLATE\fR
|
50
|
-
Full path to location of template to use
|
51
|
-
.
|
52
|
-
.TP
|
53
|
-
\fB\-\-sudo\fR
|
54
|
-
Execute the bootstrap via sudo
|
55
|
-
.
|
56
|
-
.TP
|
57
|
-
\fB\-d\fR, \fB\-\-distro DISTRO\fR
|
58
|
-
Bootstrap a distro using a template
|
59
|
-
.
|
60
|
-
.TP
|
61
|
-
\fB\-\-[no\-]host\-key\-verify\fR
|
62
|
-
Enable host key verification, which is the default behavior\.
|
63
|
-
.
|
64
|
-
.TP
|
65
|
-
\fB\-\-hint HINT_NAME[=HINT_FILE]\fR
|
66
|
-
Provide the name of a hint (with option JSON file) to set for use by Ohai plugins\.
|
67
|
-
.
|
68
|
-
.SH "DESCRIPTION"
|
69
|
-
Performs a Chef Bootstrap on the target node\. The goal of the bootstrap is to get Chef installed on the target system so it can run Chef Client with a Chef Server\. The main assumption is a baseline OS installation exists\. This sub\-command is used internally by some cloud computing plugins\.
|
70
|
-
.
|
71
|
-
.P
|
72
|
-
The bootstrap sub\-command supports supplying a template to perform the bootstrap steps\. If the distro is not specified (via \fB\-d\fR or \fB\-\-distro\fR option), an Ubuntu 10\.04 host bootstrapped with RubyGems is assumed\. The \fBDISTRO\fR value corresponds to the base filename of the template, in other words \fBDISTRO\fR\.erb\. A template file can be specified with the \fB\-\-template\-file\fR option in which case the \fBDISTRO\fR is not used\. The sub\-command looks in the following locations for the template to use:
|
73
|
-
.
|
74
|
-
.IP "\(bu" 4
|
75
|
-
\fBbootstrap\fR directory in the installed Chef Knife library\.
|
76
|
-
.
|
77
|
-
.IP "\(bu" 4
|
78
|
-
\fBbootstrap\fR directory in the \fB$PWD/\.chef\fR\.
|
79
|
-
.
|
80
|
-
.IP "\(bu" 4
|
81
|
-
\fBbootstrap\fR directory in the users \fB$HOME/\.chef\fR\.
|
82
|
-
.
|
83
|
-
.IP "" 0
|
84
|
-
.
|
85
|
-
.P
|
86
|
-
The default bootstrap templates are scripts that get copied to the target node (FQDN)\. The following distros are supported:
|
87
|
-
.
|
88
|
-
.IP "\(bu" 4
|
89
|
-
centos5\-gems
|
90
|
-
.
|
91
|
-
.IP "\(bu" 4
|
92
|
-
fedora13\-gems
|
93
|
-
.
|
94
|
-
.IP "\(bu" 4
|
95
|
-
ubuntu10\.04\-gems
|
96
|
-
.
|
97
|
-
.IP "\(bu" 4
|
98
|
-
ubuntu10\.04\-apt
|
99
|
-
.
|
100
|
-
.IP "" 0
|
101
|
-
.
|
102
|
-
.P
|
103
|
-
The gems installations will use RubyGems 1\.3\.6 and Chef installed as a gem\. The apt installation will use the Opscode APT repository\.
|
104
|
-
.
|
105
|
-
.P
|
106
|
-
In addition to handling the software installation, these bootstrap templates do the following:
|
107
|
-
.
|
108
|
-
.IP "\(bu" 4
|
109
|
-
Write the validation\.pem per the local knife configuration\.
|
110
|
-
.
|
111
|
-
.IP "\(bu" 4
|
112
|
-
Write a default config file for Chef (\fB/etc/chef/client\.rb\fR) using values from the \fBknife\.rb\fR\.
|
113
|
-
.
|
114
|
-
.IP "\(bu" 4
|
115
|
-
Create a JSON attributes file containing the specified run list and run Chef\.
|
116
|
-
.
|
117
|
-
.IP "" 0
|
118
|
-
.
|
119
|
-
.P
|
120
|
-
In the case of the RubyGems, the \fBclient\.rb\fR will be written from scratch with a minimal set of values; see \fBEXAMPLES\fR\. In the case of APT Package installation, \fBclient\.rb\fR will have the \fBvalidation_client_name\fR appended if it is not set to \fBchef\-validator\fR (default config value), and the \fBnode_name\fR will be added if \fBchef_node_name\fR option is specified\.
|
121
|
-
.
|
122
|
-
.P
|
123
|
-
When this is complete, the bootstrapped node will have:
|
124
|
-
.
|
125
|
-
.IP "\(bu" 4
|
126
|
-
Latest Chef version installed from RubyGems or APT Packages from Opscode\. This may be a later version than the local system\.
|
127
|
-
.
|
128
|
-
.IP "\(bu" 4
|
129
|
-
Be validated with the configured Chef Server\.
|
130
|
-
.
|
131
|
-
.IP "\(bu" 4
|
132
|
-
Have run Chef with its default run list if one is specfied\.
|
133
|
-
.
|
134
|
-
.IP "" 0
|
135
|
-
.
|
136
|
-
.P
|
137
|
-
Additional custom bootstrap templates can be created and stored in \fB\.chef/bootstrap/DISTRO\.erb\fR, replacing \fBDISTRO\fR with the value passed with the \fB\-d\fR or \fB\-\-distro\fR option\. See \fBEXAMPLES\fR for more information\.
|
138
|
-
.
|
139
|
-
.SH "EXAMPLES"
|
140
|
-
Setting up a custom bootstrap is fairly straightforward\. Create a \fB\.chef/bootstrap\fR directory in your Chef Repository or in \fB$HOME/\.chef/bootstrap\fR\. Then create the ERB template file\.
|
141
|
-
.
|
142
|
-
.IP "" 4
|
143
|
-
.
|
144
|
-
.nf
|
145
|
-
|
146
|
-
mkdir ~/\.chef/bootstrap
|
147
|
-
vi ~/\.chef/bootstrap/debian5\.0\-apt\.erb
|
148
|
-
.
|
149
|
-
.fi
|
150
|
-
.
|
151
|
-
.IP "" 0
|
152
|
-
.
|
153
|
-
.P
|
154
|
-
For example, to create a new bootstrap template that should be used when setting up a new Debian node\. Edit the template to run the commands, set up the validation certificate and the client configuration file, and finally to run chef\-client on completion\. The bootstrap template can be called with:
|
155
|
-
.
|
156
|
-
.IP "" 4
|
157
|
-
.
|
158
|
-
.nf
|
159
|
-
|
160
|
-
knife bootstrap mynode\.example\.com \-\-template\-file ~/\.chef/bootstrap/debian5\.0\-apt\.erb
|
161
|
-
.
|
162
|
-
.fi
|
163
|
-
.
|
164
|
-
.IP "" 0
|
165
|
-
.
|
166
|
-
.P
|
167
|
-
Or,
|
168
|
-
.
|
169
|
-
.IP "" 4
|
170
|
-
.
|
171
|
-
.nf
|
172
|
-
|
173
|
-
knife bootstrap mynode\.example\.com \-\-distro debian5\.0\-apt
|
174
|
-
.
|
175
|
-
.fi
|
176
|
-
.
|
177
|
-
.IP "" 0
|
178
|
-
.
|
179
|
-
.P
|
180
|
-
The \fB\-\-distro\fR parameter will automatically look in the \fB~/\.chef/bootstrap\fR directory for a file named \fBdebian5\.0\-apt\.erb\fR\.
|
181
|
-
.
|
182
|
-
.P
|
183
|
-
Templates provided by the Chef installation are located in \fBBASEDIR/lib/chef/knife/bootstrap/*\.erb\fR, where \fIBASEDIR\fR is the location where the package or Gem installed the Chef client libraries\.
|
184
|
-
.
|
185
|
-
.SH "BUGS"
|
186
|
-
\fBknife bootstrap\fR is not capable of bootstrapping multiple hosts in parallel\.
|
187
|
-
.
|
188
|
-
.P
|
189
|
-
The bootstrap script is passed as an argument to sh(1) on the remote system, so sensitive information contained in the script will be visible to other users via the process list using tools such as ps(1)\.
|
190
|
-
.
|
191
|
-
.SH "SEE ALSO"
|
192
|
-
\fBknife\-ssh\fR(1)
|
193
|
-
.
|
194
|
-
.SH "AUTHOR"
|
195
|
-
Chef was written by Adam Jacob \fIadam@opscode\.com\fR with many contributions from the community\.
|
196
|
-
.
|
197
|
-
.SH "DOCUMENTATION"
|
198
|
-
This manual page was written by Joshua Timberman \fIjoshua@opscode\.com\fR\. Permission is granted to copy, distribute and / or modify this document under the terms of the Apache 2\.0 License\.
|
199
|
-
.
|
200
|
-
.SH "CHEF"
|
201
|
-
Knife is distributed with Chef\. \fIhttp://wiki\.opscode\.com/display/chef/Home\fR
|
@@ -1,99 +0,0 @@
|
|
1
|
-
.\" generated with Ronn/v0.7.3
|
2
|
-
.\" http://github.com/rtomayko/ronn/tree/0.7.3
|
3
|
-
.
|
4
|
-
.TH "KNIFE\-CLIENT" "1" "February 2014" "Chef 10.30.4" "Chef Manual"
|
5
|
-
.
|
6
|
-
.SH "NAME"
|
7
|
-
\fBknife\-client\fR \- Manage Chef API Clients
|
8
|
-
.
|
9
|
-
.SH "SYNOPSIS"
|
10
|
-
\fBknife\fR \fBclient\fR \fIsub\-command\fR \fI(options)\fR
|
11
|
-
.
|
12
|
-
.SH "SUB\-COMMANDS"
|
13
|
-
Client subcommands follow a basic create, read, update, delete (CRUD) pattern\. The Following subcommands are available:
|
14
|
-
.
|
15
|
-
.SH "BULK DELETE"
|
16
|
-
\fBknife client bulk delete\fR \fIregex\fR \fI(options)\fR
|
17
|
-
.
|
18
|
-
.P
|
19
|
-
Delete clients where the client name matches the regular expression \fIregex\fR on the Chef Server\. The regular expression should be given as a quoted string, and not surrounded by forward slashes\.
|
20
|
-
.
|
21
|
-
.SH "CREATE"
|
22
|
-
\fBknife client create\fR \fIclient name\fR \fI(options)\fR
|
23
|
-
.
|
24
|
-
.TP
|
25
|
-
\fB\-a\fR, \fB\-\-admin\fR
|
26
|
-
Create the client as an admin
|
27
|
-
.
|
28
|
-
.TP
|
29
|
-
\fB\-f\fR, \fB\-\-file FILE\fR
|
30
|
-
Write the key to a file
|
31
|
-
.
|
32
|
-
.P
|
33
|
-
Create a new client\. This generates an RSA keypair\. The private key will be displayed on \fISTDOUT\fR or written to the named file\. The public half will be stored on the Server\. For \fIchef\-client\fR systems, the private key should be copied to the system as \fB/etc/chef/client\.pem\fR\.
|
34
|
-
.
|
35
|
-
.P
|
36
|
-
Admin clients should be created for users that will use \fIknife\fR to access the API as an administrator\. The private key will generally be copied to \fB~/\.chef/client\e_name\.pem\fR and referenced in the \fBknife\.rb\fR configuration file\.
|
37
|
-
.
|
38
|
-
.SH "DELETE"
|
39
|
-
\fBknife client delete\fR \fIclient name\fR \fI(options)\fR
|
40
|
-
.
|
41
|
-
.P
|
42
|
-
Deletes a registered client\.
|
43
|
-
.
|
44
|
-
.SH "EDIT"
|
45
|
-
\fBclient edit\fR \fIclient name\fR \fI(options)\fR
|
46
|
-
.
|
47
|
-
.P
|
48
|
-
Edit a registered client\.
|
49
|
-
.
|
50
|
-
.SH "LIST"
|
51
|
-
\fBclient list\fR \fI(options)\fR
|
52
|
-
.
|
53
|
-
.TP
|
54
|
-
\fB\-w\fR, \fB\-\-with\-uri\fR
|
55
|
-
Show corresponding URIs
|
56
|
-
.
|
57
|
-
.P
|
58
|
-
List all registered clients\.
|
59
|
-
.
|
60
|
-
.SH "REREGISTER"
|
61
|
-
\fBclient reregister\fR \fIclient name\fR \fI(options)\fR
|
62
|
-
.
|
63
|
-
.TP
|
64
|
-
\fB\-f\fR, \fB\-\-file FILE\fR
|
65
|
-
Write the key to a file
|
66
|
-
.
|
67
|
-
.P
|
68
|
-
Regenerate the RSA keypair for a client\. The public half will be stored on the server and the private key displayed on \fISTDOUT\fR or written to the named file\. This operation will invalidate the previous keypair used by the client, preventing it from authenticating with the Chef Server\. Use care when reregistering the validator client\.
|
69
|
-
.
|
70
|
-
.SH "SHOW"
|
71
|
-
\fBclient show\fR \fIclient name\fR \fI(options)\fR
|
72
|
-
.
|
73
|
-
.TP
|
74
|
-
\fB\-a\fR, \fB\-\-attribute ATTR\fR
|
75
|
-
Show only one attribute
|
76
|
-
.
|
77
|
-
.P
|
78
|
-
Show a client\. Output format is determined by the \-\-format option\.
|
79
|
-
.
|
80
|
-
.SH "DESCRIPTION"
|
81
|
-
Clients are identities used for communication with the Chef Server API, roughly equivalent to user accounts on the Chef Server, except that clients only communicate with the Chef Server API and are authenticated via request signatures\.
|
82
|
-
.
|
83
|
-
.P
|
84
|
-
In the typical case, there will be one client object on the server for each node, and the corresponding client and node will have identical names\.
|
85
|
-
.
|
86
|
-
.P
|
87
|
-
In the Chef authorization model, there is one special client, the "validator", which is authorized to create new non\-administrative clients but has minimal privileges otherwise\. This identity is used as a sort of "guest account" to create a client identity when initially setting up a host for management with Chef\.
|
88
|
-
.
|
89
|
-
.SH "SEE ALSO"
|
90
|
-
\fBknife\-node\fR(1)
|
91
|
-
.
|
92
|
-
.SH "AUTHOR"
|
93
|
-
Chef was written by Adam Jacob \fIadam@opscode\.com\fR with many contributions from the community\.
|
94
|
-
.
|
95
|
-
.SH "DOCUMENTATION"
|
96
|
-
This manual page was written by Joshua Timberman \fIjoshua@opscode\.com\fR\. Permission is granted to copy, distribute and / or modify this document under the terms of the Apache 2\.0 License\.
|
97
|
-
.
|
98
|
-
.SH "CHEF"
|
99
|
-
Knife is distributed with Chef\. \fIhttp://wiki\.opscode\.com/display/chef/Home\fR
|