microwave 1.0.2 → 1.0.3
Sign up to get free protection for your applications and to get access to all the features.
- data/Rakefile +4 -4
- data/bin/chef-solo +2 -0
- data/spec/spec_helper.rb +2 -0
- data/spec/unit/checksum/storage/filesystem_spec.rb +4 -4
- data/spec/unit/config_spec.rb +7 -4
- data/spec/unit/data_bag_spec.rb +11 -11
- data/spec/unit/formatters/error_inspectors/compile_error_inspector_spec.rb +8 -8
- data/spec/unit/formatters/error_inspectors/resource_failure_inspector_spec.rb +5 -5
- metadata +10 -124
- data/distro/README +0 -2
- data/distro/arch/etc/conf.d/chef-client.conf +0 -5
- data/distro/arch/etc/conf.d/chef-expander.conf +0 -8
- data/distro/arch/etc/conf.d/chef-server-webui.conf +0 -10
- data/distro/arch/etc/conf.d/chef-server.conf +0 -10
- data/distro/arch/etc/conf.d/chef-solr.conf +0 -8
- data/distro/arch/etc/rc.d/chef-client +0 -90
- data/distro/arch/etc/rc.d/chef-expander +0 -78
- data/distro/arch/etc/rc.d/chef-server +0 -78
- data/distro/arch/etc/rc.d/chef-server-webui +0 -78
- data/distro/arch/etc/rc.d/chef-solr +0 -78
- data/distro/common/html/chef-client.8.html +0 -145
- data/distro/common/html/chef-expander.8.html +0 -164
- data/distro/common/html/chef-expanderctl.8.html +0 -146
- data/distro/common/html/chef-server-webui.8.html +0 -185
- data/distro/common/html/chef-server.8.html +0 -182
- data/distro/common/html/chef-solo.8.html +0 -191
- data/distro/common/html/chef-solr.8.html +0 -165
- data/distro/common/html/knife-bootstrap.1.html +0 -241
- data/distro/common/html/knife-client.1.html +0 -219
- data/distro/common/html/knife-configure.1.html +0 -170
- data/distro/common/html/knife-cookbook-site.1.html +0 -241
- data/distro/common/html/knife-cookbook.1.html +0 -384
- data/distro/common/html/knife-data-bag.1.html +0 -238
- data/distro/common/html/knife-environment.1.html +0 -267
- data/distro/common/html/knife-exec.1.html +0 -134
- data/distro/common/html/knife-index.1.html +0 -125
- data/distro/common/html/knife-node.1.html +0 -250
- data/distro/common/html/knife-recipe.1.html +0 -92
- data/distro/common/html/knife-role.1.html +0 -200
- data/distro/common/html/knife-search.1.html +0 -288
- data/distro/common/html/knife-ssh.1.html +0 -156
- data/distro/common/html/knife-status.1.html +0 -128
- data/distro/common/html/knife-tag.1.html +0 -137
- data/distro/common/html/knife.1.html +0 -320
- data/distro/common/html/shef.1.html +0 -283
- 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 +0 -145
- data/distro/common/man/man1/knife-cookbook.1 +0 -345
- data/distro/common/man/man1/knife-data-bag.1 +0 -136
- data/distro/common/man/man1/knife-environment.1 +0 -178
- data/distro/common/man/man1/knife-exec.1 +0 -46
- data/distro/common/man/man1/knife-index.1 +0 -29
- data/distro/common/man/man1/knife-node.1 +0 -134
- data/distro/common/man/man1/knife-role.1 +0 -88
- data/distro/common/man/man1/knife-search.1 +0 -280
- data/distro/common/man/man1/knife-ssh.1 +0 -79
- data/distro/common/man/man1/knife-status.1 +0 -29
- data/distro/common/man/man1/knife-tag.1 +0 -43
- data/distro/common/man/man1/knife.1 +0 -288
- data/distro/common/man/man1/shef.1 +0 -256
- data/distro/common/man/man8/chef-client.8 +0 -104
- data/distro/common/man/man8/chef-expander.8 +0 -97
- data/distro/common/man/man8/chef-expanderctl.8 +0 -62
- data/distro/common/man/man8/chef-server-webui.8 +0 -155
- data/distro/common/man/man8/chef-server.8 +0 -147
- data/distro/common/man/man8/chef-solo.8 +0 -158
- data/distro/common/man/man8/chef-solr.8 +0 -122
- data/distro/common/markdown/README +0 -3
- data/distro/common/markdown/man1/knife-bootstrap.mkd +0 -141
- data/distro/common/markdown/man1/knife-client.mkd +0 -103
- data/distro/common/markdown/man1/knife-configure.mkd +0 -70
- data/distro/common/markdown/man1/knife-cookbook-site.mkd +0 -123
- data/distro/common/markdown/man1/knife-cookbook.mkd +0 -263
- data/distro/common/markdown/man1/knife-data-bag.mkd +0 -121
- data/distro/common/markdown/man1/knife-environment.mkd +0 -151
- data/distro/common/markdown/man1/knife-exec.mkd +0 -37
- data/distro/common/markdown/man1/knife-index.mkd +0 -30
- data/distro/common/markdown/man1/knife-node.mkd +0 -130
- data/distro/common/markdown/man1/knife-role.mkd +0 -85
- data/distro/common/markdown/man1/knife-search.mkd +0 -180
- data/distro/common/markdown/man1/knife-ssh.mkd +0 -69
- data/distro/common/markdown/man1/knife-status.mkd +0 -36
- data/distro/common/markdown/man1/knife-tag.mkd +0 -39
- data/distro/common/markdown/man1/knife.mkd +0 -218
- data/distro/common/markdown/man1/shef.mkd +0 -189
- data/distro/common/markdown/man8/chef-client.mkd +0 -74
- data/distro/common/markdown/man8/chef-expander.mkd +0 -82
- data/distro/common/markdown/man8/chef-expanderctl.mkd +0 -58
- data/distro/common/markdown/man8/chef-server-webui.mkd +0 -121
- data/distro/common/markdown/man8/chef-server.mkd +0 -121
- data/distro/common/markdown/man8/chef-solo.mkd +0 -107
- data/distro/common/markdown/man8/chef-solr.mkd +0 -89
- data/distro/debian/etc/default/chef-client +0 -4
- data/distro/debian/etc/default/chef-expander +0 -8
- data/distro/debian/etc/default/chef-server +0 -9
- data/distro/debian/etc/default/chef-server-webui +0 -9
- data/distro/debian/etc/default/chef-solr +0 -8
- data/distro/debian/etc/init.d/chef-client +0 -210
- data/distro/debian/etc/init.d/chef-expander +0 -176
- data/distro/debian/etc/init.d/chef-server +0 -122
- data/distro/debian/etc/init.d/chef-server-webui +0 -123
- data/distro/debian/etc/init.d/chef-solr +0 -176
- data/distro/debian/etc/init/chef-client.conf +0 -17
- data/distro/debian/etc/init/chef-expander.conf +0 -17
- data/distro/debian/etc/init/chef-server-webui.conf +0 -17
- data/distro/debian/etc/init/chef-server.conf +0 -17
- data/distro/debian/etc/init/chef-solr.conf +0 -17
- data/distro/redhat/etc/init.d/chef-client +0 -121
- data/distro/redhat/etc/init.d/chef-expander +0 -104
- data/distro/redhat/etc/init.d/chef-server +0 -112
- data/distro/redhat/etc/init.d/chef-server-webui +0 -112
- data/distro/redhat/etc/init.d/chef-solr +0 -104
- data/distro/redhat/etc/logrotate.d/chef-client +0 -8
- data/distro/redhat/etc/logrotate.d/chef-expander +0 -8
- data/distro/redhat/etc/logrotate.d/chef-server +0 -8
- data/distro/redhat/etc/logrotate.d/chef-server-webui +0 -8
- data/distro/redhat/etc/logrotate.d/chef-solr +0 -8
- data/distro/redhat/etc/sysconfig/chef-client +0 -15
- data/distro/redhat/etc/sysconfig/chef-expander +0 -7
- data/distro/redhat/etc/sysconfig/chef-server +0 -14
- data/distro/redhat/etc/sysconfig/chef-server-webui +0 -14
- data/distro/redhat/etc/sysconfig/chef-solr +0 -8
- data/distro/windows/service_manager.rb +0 -164
@@ -1,241 +0,0 @@
|
|
1
|
-
<!DOCTYPE html>
|
2
|
-
<html>
|
3
|
-
<head>
|
4
|
-
<meta http-equiv='content-type' value='text/html;charset=utf8'>
|
5
|
-
<meta name='generator' value='Ronn/v0.7.3 (http://github.com/rtomayko/ronn/tree/0.7.3)'>
|
6
|
-
<title>knife-bootstrap(1) - Install Chef Client on a remote host</title>
|
7
|
-
<style type='text/css' media='all'>
|
8
|
-
/* style: man */
|
9
|
-
body#manpage {margin:0}
|
10
|
-
.mp {max-width:100ex;padding:0 9ex 1ex 4ex}
|
11
|
-
.mp p,.mp pre,.mp ul,.mp ol,.mp dl {margin:0 0 20px 0}
|
12
|
-
.mp h2 {margin:10px 0 0 0}
|
13
|
-
.mp > p,.mp > pre,.mp > ul,.mp > ol,.mp > dl {margin-left:8ex}
|
14
|
-
.mp h3 {margin:0 0 0 4ex}
|
15
|
-
.mp dt {margin:0;clear:left}
|
16
|
-
.mp dt.flush {float:left;width:8ex}
|
17
|
-
.mp dd {margin:0 0 0 9ex}
|
18
|
-
.mp h1,.mp h2,.mp h3,.mp h4 {clear:left}
|
19
|
-
.mp pre {margin-bottom:20px}
|
20
|
-
.mp pre+h2,.mp pre+h3 {margin-top:22px}
|
21
|
-
.mp h2+pre,.mp h3+pre {margin-top:5px}
|
22
|
-
.mp img {display:block;margin:auto}
|
23
|
-
.mp h1.man-title {display:none}
|
24
|
-
.mp,.mp code,.mp pre,.mp tt,.mp kbd,.mp samp,.mp h3,.mp h4 {font-family:monospace;font-size:14px;line-height:1.42857142857143}
|
25
|
-
.mp h2 {font-size:16px;line-height:1.25}
|
26
|
-
.mp h1 {font-size:20px;line-height:2}
|
27
|
-
.mp {text-align:justify;background:#fff}
|
28
|
-
.mp,.mp code,.mp pre,.mp pre code,.mp tt,.mp kbd,.mp samp {color:#131211}
|
29
|
-
.mp h1,.mp h2,.mp h3,.mp h4 {color:#030201}
|
30
|
-
.mp u {text-decoration:underline}
|
31
|
-
.mp code,.mp strong,.mp b {font-weight:bold;color:#131211}
|
32
|
-
.mp em,.mp var {font-style:italic;color:#232221;text-decoration:none}
|
33
|
-
.mp a,.mp a:link,.mp a:hover,.mp a code,.mp a pre,.mp a tt,.mp a kbd,.mp a samp {color:#0000ff}
|
34
|
-
.mp b.man-ref {font-weight:normal;color:#434241}
|
35
|
-
.mp pre {padding:0 4ex}
|
36
|
-
.mp pre code {font-weight:normal;color:#434241}
|
37
|
-
.mp h2+pre,h3+pre {padding-left:0}
|
38
|
-
ol.man-decor,ol.man-decor li {margin:3px 0 10px 0;padding:0;float:left;width:33%;list-style-type:none;text-transform:uppercase;color:#999;letter-spacing:1px}
|
39
|
-
ol.man-decor {width:100%}
|
40
|
-
ol.man-decor li.tl {text-align:left}
|
41
|
-
ol.man-decor li.tc {text-align:center;letter-spacing:4px}
|
42
|
-
ol.man-decor li.tr {text-align:right;float:right}
|
43
|
-
</style>
|
44
|
-
<style type='text/css' media='all'>
|
45
|
-
/* style: toc */
|
46
|
-
.man-navigation {display:block !important;position:fixed;top:0;left:113ex;height:100%;width:100%;padding:48px 0 0 0;border-left:1px solid #dbdbdb;background:#eee}
|
47
|
-
.man-navigation a,.man-navigation a:hover,.man-navigation a:link,.man-navigation a:visited {display:block;margin:0;padding:5px 2px 5px 30px;color:#999;text-decoration:none}
|
48
|
-
.man-navigation a:hover {color:#111;text-decoration:underline}
|
49
|
-
</style>
|
50
|
-
</head>
|
51
|
-
<!--
|
52
|
-
The following styles are deprecated and will be removed at some point:
|
53
|
-
div#man, div#man ol.man, div#man ol.head, div#man ol.man.
|
54
|
-
|
55
|
-
The .man-page, .man-decor, .man-head, .man-foot, .man-title, and
|
56
|
-
.man-navigation should be used instead.
|
57
|
-
-->
|
58
|
-
<body id='manpage'>
|
59
|
-
<div class='mp' id='man'>
|
60
|
-
|
61
|
-
<div class='man-navigation' style='display:none'>
|
62
|
-
<a href="#NAME">NAME</a>
|
63
|
-
<a href="#SYNOPSIS">SYNOPSIS</a>
|
64
|
-
<a href="#DESCRIPTION">DESCRIPTION</a>
|
65
|
-
<a href="#EXAMPLES">EXAMPLES</a>
|
66
|
-
<a href="#BUGS">BUGS</a>
|
67
|
-
<a href="#SEE-ALSO">SEE ALSO</a>
|
68
|
-
<a href="#AUTHOR">AUTHOR</a>
|
69
|
-
<a href="#DOCUMENTATION">DOCUMENTATION</a>
|
70
|
-
<a href="#CHEF">CHEF</a>
|
71
|
-
</div>
|
72
|
-
|
73
|
-
<ol class='man-decor man-head man head'>
|
74
|
-
<li class='tl'>knife-bootstrap(1)</li>
|
75
|
-
<li class='tc'>Chef Manual</li>
|
76
|
-
<li class='tr'>knife-bootstrap(1)</li>
|
77
|
-
</ol>
|
78
|
-
|
79
|
-
<h2 id="NAME">NAME</h2>
|
80
|
-
<p class="man-name">
|
81
|
-
<code>knife-bootstrap</code> - <span class="man-whatis">Install Chef Client on a remote host</span>
|
82
|
-
</p>
|
83
|
-
|
84
|
-
<h2 id="SYNOPSIS">SYNOPSIS</h2>
|
85
|
-
|
86
|
-
<p><strong>knife</strong> <strong>bootstrap</strong> <em>(options)</em></p>
|
87
|
-
|
88
|
-
<dl>
|
89
|
-
<dt><code>-i</code>, <code>--identity-file IDENTITY_FILE</code></dt><dd>The SSH identity file used for authentication</dd>
|
90
|
-
<dt><code>-N</code>, <code>--node-name NAME</code></dt><dd>The Chef node name for your new node</dd>
|
91
|
-
<dt><code>-P</code>, <code>--ssh-password PASSWORD</code></dt><dd>The ssh password</dd>
|
92
|
-
<dt><code>-x</code>, <code>--ssh-user USERNAME</code></dt><dd>The ssh username</dd>
|
93
|
-
<dt><code>-p</code>, <code>--ssh-port PORT</code></dt><dd>The ssh port</dd>
|
94
|
-
<dt><code>--bootstrap-version VERSION</code></dt><dd>The version of Chef to install</dd>
|
95
|
-
<dt><code>--bootstrap-proxy PROXY_URL</code></dt><dd><code>The proxy server for the node being bootstrapped</code></dd>
|
96
|
-
<dt><code>--prerelease</code></dt><dd>Install pre-release Chef gems</dd>
|
97
|
-
<dt><code>-r</code>, <code>--run-list RUN_LIST</code></dt><dd>Comma separated list of roles/recipes to apply</dd>
|
98
|
-
<dt><code>--template-file TEMPLATE</code></dt><dd>Full path to location of template to use</dd>
|
99
|
-
<dt class="flush"><code>--sudo</code></dt><dd>Execute the bootstrap via sudo</dd>
|
100
|
-
<dt><code>-d</code>, <code>--distro DISTRO</code></dt><dd>Bootstrap a distro using a template</dd>
|
101
|
-
<dt><code>--[no-]host-key-verify</code></dt><dd>Enable host key verification, which is the default behavior.</dd>
|
102
|
-
<dt><code>--hint HINT_NAME[=HINT_FILE]</code></dt><dd>Provide the name of a hint (with option JSON file) to set for use by
|
103
|
-
Ohai plugins.</dd>
|
104
|
-
</dl>
|
105
|
-
|
106
|
-
|
107
|
-
<h2 id="DESCRIPTION">DESCRIPTION</h2>
|
108
|
-
|
109
|
-
<p>Performs a Chef Bootstrap on the target node. The goal of the bootstrap
|
110
|
-
is to get Chef installed on the target system so it can run Chef Client
|
111
|
-
with a Chef Server. The main assumption is a baseline OS installation
|
112
|
-
exists. This sub-command is used internally by some cloud computing
|
113
|
-
plugins.</p>
|
114
|
-
|
115
|
-
<p>The bootstrap sub-command supports supplying a template to perform the
|
116
|
-
bootstrap steps. If the distro is not specified (via <code>-d</code> or <code>--distro</code>
|
117
|
-
option), an Ubuntu 10.04 host bootstrapped with RubyGems is assumed. The
|
118
|
-
<strong>DISTRO</strong> value corresponds to the base filename of the template, in
|
119
|
-
other words <code>DISTRO</code>.erb. A template file can be specified with the
|
120
|
-
<code>--template-file</code> option in which case the <strong>DISTRO</strong> is not used. The
|
121
|
-
sub-command looks in the following locations for the template to use:</p>
|
122
|
-
|
123
|
-
<ul>
|
124
|
-
<li><code>bootstrap</code> directory in the installed Chef Knife library.</li>
|
125
|
-
<li><code>bootstrap</code> directory in the <code>$PWD/.chef</code>.</li>
|
126
|
-
<li><code>bootstrap</code> directory in the users <code>$HOME/.chef</code>.</li>
|
127
|
-
</ul>
|
128
|
-
|
129
|
-
|
130
|
-
<p>The default bootstrap templates are scripts that get copied to the
|
131
|
-
target node (FQDN). The following distros are supported:</p>
|
132
|
-
|
133
|
-
<ul>
|
134
|
-
<li>centos5-gems</li>
|
135
|
-
<li>fedora13-gems</li>
|
136
|
-
<li>ubuntu10.04-gems</li>
|
137
|
-
<li>ubuntu10.04-apt</li>
|
138
|
-
</ul>
|
139
|
-
|
140
|
-
|
141
|
-
<p>The gems installations will use RubyGems 1.3.6 and Chef installed as a
|
142
|
-
gem. The apt installation will use the Opscode APT repository.</p>
|
143
|
-
|
144
|
-
<p>In addition to handling the software installation, these bootstrap
|
145
|
-
templates do the following:</p>
|
146
|
-
|
147
|
-
<ul>
|
148
|
-
<li>Write the validation.pem per the local knife configuration.</li>
|
149
|
-
<li>Write a default config file for Chef (<code>/etc/chef/client.rb</code>) using values from the <code>knife.rb</code>.</li>
|
150
|
-
<li>Create a JSON attributes file containing the specified run list and run Chef.</li>
|
151
|
-
</ul>
|
152
|
-
|
153
|
-
|
154
|
-
<p>In the case of the RubyGems, the <code>client.rb</code> will be written from
|
155
|
-
scratch with a minimal set of values; see <strong>EXAMPLES</strong>. In the case of
|
156
|
-
APT Package installation, <code>client.rb</code> will have the
|
157
|
-
<code>validation_client_name</code> appended if it is not set to <code>chef-validator</code>
|
158
|
-
(default config value), and the <code>node_name</code> will be added if
|
159
|
-
<code>chef_node_name</code> option is specified.</p>
|
160
|
-
|
161
|
-
<p>When this is complete, the bootstrapped node will have:</p>
|
162
|
-
|
163
|
-
<ul>
|
164
|
-
<li>Latest Chef version installed from RubyGems or APT Packages from Opscode. This may be a later version than the local system.</li>
|
165
|
-
<li>Be validated with the configured Chef Server.</li>
|
166
|
-
<li>Have run Chef with its default run list if one is specfied.</li>
|
167
|
-
</ul>
|
168
|
-
|
169
|
-
|
170
|
-
<p>Additional custom bootstrap templates can be created and stored in
|
171
|
-
<code>.chef/bootstrap/DISTRO.erb</code>, replacing <strong>DISTRO</strong> with the value passed
|
172
|
-
with the <code>-d</code> or <code>--distro</code> option. See <strong>EXAMPLES</strong> for more
|
173
|
-
information.</p>
|
174
|
-
|
175
|
-
<h2 id="EXAMPLES">EXAMPLES</h2>
|
176
|
-
|
177
|
-
<p>Setting up a custom bootstrap is fairly straightforward. Create a
|
178
|
-
<code>.chef/bootstrap</code> directory in your Chef Repository or in
|
179
|
-
<code>$HOME/.chef/bootstrap</code>. Then create the ERB template file.</p>
|
180
|
-
|
181
|
-
<pre><code>mkdir ~/.chef/bootstrap
|
182
|
-
vi ~/.chef/bootstrap/debian5.0-apt.erb
|
183
|
-
</code></pre>
|
184
|
-
|
185
|
-
<p>For example, to create a new bootstrap template that should be used when
|
186
|
-
setting up a new Debian node. Edit the template to run the commands, set
|
187
|
-
up the validation certificate and the client configuration file, and
|
188
|
-
finally to run chef-client on completion. The bootstrap template can be
|
189
|
-
called with:</p>
|
190
|
-
|
191
|
-
<pre><code>knife bootstrap mynode.example.com --template-file ~/.chef/bootstrap/debian5.0-apt.erb
|
192
|
-
</code></pre>
|
193
|
-
|
194
|
-
<p>Or,</p>
|
195
|
-
|
196
|
-
<pre><code>knife bootstrap mynode.example.com --distro debian5.0-apt
|
197
|
-
</code></pre>
|
198
|
-
|
199
|
-
<p>The <code>--distro</code> parameter will automatically look in the
|
200
|
-
<code>~/.chef/bootstrap</code> directory for a file named <code>debian5.0-apt.erb</code>.</p>
|
201
|
-
|
202
|
-
<p>Templates provided by the Chef installation are located in
|
203
|
-
<code>BASEDIR/lib/chef/knife/bootstrap/*.erb</code>, where <em>BASEDIR</em> is the
|
204
|
-
location where the package or Gem installed the Chef client libraries.</p>
|
205
|
-
|
206
|
-
<h2 id="BUGS">BUGS</h2>
|
207
|
-
|
208
|
-
<p><code>knife bootstrap</code> is not capable of bootstrapping multiple hosts in
|
209
|
-
parallel.</p>
|
210
|
-
|
211
|
-
<p>The bootstrap script is passed as an argument to <span class="man-ref">sh<span class="s">(1)</span></span> on the remote
|
212
|
-
system, so sensitive information contained in the script will be visible
|
213
|
-
to other users via the process list using tools such as <span class="man-ref">ps<span class="s">(1)</span></span>.</p>
|
214
|
-
|
215
|
-
<h2 id="SEE-ALSO">SEE ALSO</h2>
|
216
|
-
|
217
|
-
<p> <strong>knife-ssh</strong>(1)</p>
|
218
|
-
|
219
|
-
<h2 id="AUTHOR">AUTHOR</h2>
|
220
|
-
|
221
|
-
<p> Chef was written by Adam Jacob <a data-bare-link="true" href="mailto:adam@opscode.com">adam@opscode.com</a> with many contributions from the community.</p>
|
222
|
-
|
223
|
-
<h2 id="DOCUMENTATION">DOCUMENTATION</h2>
|
224
|
-
|
225
|
-
<p> This manual page was written by Joshua Timberman <a data-bare-link="true" href="mailto:joshua@opscode.com">joshua@opscode.com</a>.
|
226
|
-
Permission is granted to copy, distribute and / or modify this document under the terms of the Apache 2.0 License.</p>
|
227
|
-
|
228
|
-
<h2 id="CHEF">CHEF</h2>
|
229
|
-
|
230
|
-
<p> Knife is distributed with Chef. <a data-bare-link="true" href="http://wiki.opscode.com/display/chef/Home">http://wiki.opscode.com/display/chef/Home</a></p>
|
231
|
-
|
232
|
-
|
233
|
-
<ol class='man-decor man-foot man foot'>
|
234
|
-
<li class='tl'>Chef 10.16.0.rc.1</li>
|
235
|
-
<li class='tc'>October 2012</li>
|
236
|
-
<li class='tr'>knife-bootstrap(1)</li>
|
237
|
-
</ol>
|
238
|
-
|
239
|
-
</div>
|
240
|
-
</body>
|
241
|
-
</html>
|
@@ -1,219 +0,0 @@
|
|
1
|
-
<!DOCTYPE html>
|
2
|
-
<html>
|
3
|
-
<head>
|
4
|
-
<meta http-equiv='content-type' value='text/html;charset=utf8'>
|
5
|
-
<meta name='generator' value='Ronn/v0.7.3 (http://github.com/rtomayko/ronn/tree/0.7.3)'>
|
6
|
-
<title>knife-client(1) - Manage Chef API Clients</title>
|
7
|
-
<style type='text/css' media='all'>
|
8
|
-
/* style: man */
|
9
|
-
body#manpage {margin:0}
|
10
|
-
.mp {max-width:100ex;padding:0 9ex 1ex 4ex}
|
11
|
-
.mp p,.mp pre,.mp ul,.mp ol,.mp dl {margin:0 0 20px 0}
|
12
|
-
.mp h2 {margin:10px 0 0 0}
|
13
|
-
.mp > p,.mp > pre,.mp > ul,.mp > ol,.mp > dl {margin-left:8ex}
|
14
|
-
.mp h3 {margin:0 0 0 4ex}
|
15
|
-
.mp dt {margin:0;clear:left}
|
16
|
-
.mp dt.flush {float:left;width:8ex}
|
17
|
-
.mp dd {margin:0 0 0 9ex}
|
18
|
-
.mp h1,.mp h2,.mp h3,.mp h4 {clear:left}
|
19
|
-
.mp pre {margin-bottom:20px}
|
20
|
-
.mp pre+h2,.mp pre+h3 {margin-top:22px}
|
21
|
-
.mp h2+pre,.mp h3+pre {margin-top:5px}
|
22
|
-
.mp img {display:block;margin:auto}
|
23
|
-
.mp h1.man-title {display:none}
|
24
|
-
.mp,.mp code,.mp pre,.mp tt,.mp kbd,.mp samp,.mp h3,.mp h4 {font-family:monospace;font-size:14px;line-height:1.42857142857143}
|
25
|
-
.mp h2 {font-size:16px;line-height:1.25}
|
26
|
-
.mp h1 {font-size:20px;line-height:2}
|
27
|
-
.mp {text-align:justify;background:#fff}
|
28
|
-
.mp,.mp code,.mp pre,.mp pre code,.mp tt,.mp kbd,.mp samp {color:#131211}
|
29
|
-
.mp h1,.mp h2,.mp h3,.mp h4 {color:#030201}
|
30
|
-
.mp u {text-decoration:underline}
|
31
|
-
.mp code,.mp strong,.mp b {font-weight:bold;color:#131211}
|
32
|
-
.mp em,.mp var {font-style:italic;color:#232221;text-decoration:none}
|
33
|
-
.mp a,.mp a:link,.mp a:hover,.mp a code,.mp a pre,.mp a tt,.mp a kbd,.mp a samp {color:#0000ff}
|
34
|
-
.mp b.man-ref {font-weight:normal;color:#434241}
|
35
|
-
.mp pre {padding:0 4ex}
|
36
|
-
.mp pre code {font-weight:normal;color:#434241}
|
37
|
-
.mp h2+pre,h3+pre {padding-left:0}
|
38
|
-
ol.man-decor,ol.man-decor li {margin:3px 0 10px 0;padding:0;float:left;width:33%;list-style-type:none;text-transform:uppercase;color:#999;letter-spacing:1px}
|
39
|
-
ol.man-decor {width:100%}
|
40
|
-
ol.man-decor li.tl {text-align:left}
|
41
|
-
ol.man-decor li.tc {text-align:center;letter-spacing:4px}
|
42
|
-
ol.man-decor li.tr {text-align:right;float:right}
|
43
|
-
</style>
|
44
|
-
<style type='text/css' media='all'>
|
45
|
-
/* style: toc */
|
46
|
-
.man-navigation {display:block !important;position:fixed;top:0;left:113ex;height:100%;width:100%;padding:48px 0 0 0;border-left:1px solid #dbdbdb;background:#eee}
|
47
|
-
.man-navigation a,.man-navigation a:hover,.man-navigation a:link,.man-navigation a:visited {display:block;margin:0;padding:5px 2px 5px 30px;color:#999;text-decoration:none}
|
48
|
-
.man-navigation a:hover {color:#111;text-decoration:underline}
|
49
|
-
</style>
|
50
|
-
</head>
|
51
|
-
<!--
|
52
|
-
The following styles are deprecated and will be removed at some point:
|
53
|
-
div#man, div#man ol.man, div#man ol.head, div#man ol.man.
|
54
|
-
|
55
|
-
The .man-page, .man-decor, .man-head, .man-foot, .man-title, and
|
56
|
-
.man-navigation should be used instead.
|
57
|
-
-->
|
58
|
-
<body id='manpage'>
|
59
|
-
<div class='mp' id='man'>
|
60
|
-
|
61
|
-
<div class='man-navigation' style='display:none'>
|
62
|
-
<a href="#NAME">NAME</a>
|
63
|
-
<a href="#SYNOPSIS">SYNOPSIS</a>
|
64
|
-
<a href="#SUB-COMMANDS">SUB-COMMANDS</a>
|
65
|
-
<a href="#BULK-DELETE">BULK DELETE</a>
|
66
|
-
<a href="#CREATE">CREATE</a>
|
67
|
-
<a href="#DELETE">DELETE</a>
|
68
|
-
<a href="#EDIT">EDIT</a>
|
69
|
-
<a href="#LIST">LIST</a>
|
70
|
-
<a href="#REREGISTER">REREGISTER</a>
|
71
|
-
<a href="#SHOW">SHOW</a>
|
72
|
-
<a href="#DESCRIPTION">DESCRIPTION</a>
|
73
|
-
<a href="#SEE-ALSO">SEE ALSO</a>
|
74
|
-
<a href="#AUTHOR">AUTHOR</a>
|
75
|
-
<a href="#DOCUMENTATION">DOCUMENTATION</a>
|
76
|
-
<a href="#CHEF">CHEF</a>
|
77
|
-
</div>
|
78
|
-
|
79
|
-
<ol class='man-decor man-head man head'>
|
80
|
-
<li class='tl'>knife-client(1)</li>
|
81
|
-
<li class='tc'>Chef Manual</li>
|
82
|
-
<li class='tr'>knife-client(1)</li>
|
83
|
-
</ol>
|
84
|
-
|
85
|
-
<h2 id="NAME">NAME</h2>
|
86
|
-
<p class="man-name">
|
87
|
-
<code>knife-client</code> - <span class="man-whatis">Manage Chef API Clients</span>
|
88
|
-
</p>
|
89
|
-
|
90
|
-
<h2 id="SYNOPSIS">SYNOPSIS</h2>
|
91
|
-
|
92
|
-
<p><strong>knife</strong> <strong>client</strong> <em>sub-command</em> <em>(options)</em></p>
|
93
|
-
|
94
|
-
<h2 id="SUB-COMMANDS">SUB-COMMANDS</h2>
|
95
|
-
|
96
|
-
<p>Client subcommands follow a basic create, read, update, delete (CRUD)
|
97
|
-
pattern. The Following subcommands are available:</p>
|
98
|
-
|
99
|
-
<h2 id="BULK-DELETE">BULK DELETE</h2>
|
100
|
-
|
101
|
-
<p><strong>knife client bulk delete</strong> <em>regex</em> <em>(options)</em></p>
|
102
|
-
|
103
|
-
<p>Delete clients where the client name matches the regular expression
|
104
|
-
<em>regex</em> on the Chef Server. The regular expression should be given as a
|
105
|
-
quoted string, and not surrounded by forward slashes.</p>
|
106
|
-
|
107
|
-
<h2 id="CREATE">CREATE</h2>
|
108
|
-
|
109
|
-
<p><strong>knife client create</strong> <em>client name</em> <em>(options)</em></p>
|
110
|
-
|
111
|
-
<dl>
|
112
|
-
<dt><code>-a</code>, <code>--admin </code></dt><dd>Create the client as an admin</dd>
|
113
|
-
<dt><code>-f</code>, <code>--file FILE</code></dt><dd>Write the key to a file</dd>
|
114
|
-
</dl>
|
115
|
-
|
116
|
-
|
117
|
-
<p>Create a new client. This generates an RSA keypair. The private key will
|
118
|
-
be displayed on <em>STDOUT</em> or written to the named file. The public half
|
119
|
-
will be stored on the Server. For <em>chef-client</em> systems, the private key
|
120
|
-
should be copied to the system as <code>/etc/chef/client.pem</code>.</p>
|
121
|
-
|
122
|
-
<p>Admin clients should be created for users that will use <em>knife</em> to
|
123
|
-
access the API as an administrator. The private key will generally be
|
124
|
-
copied to <code>~/.chef/client\_name.pem</code> and referenced in the <code>knife.rb</code>
|
125
|
-
configuration file.</p>
|
126
|
-
|
127
|
-
<h2 id="DELETE">DELETE</h2>
|
128
|
-
|
129
|
-
<p><strong>knife client delete</strong> <em>client name</em> <em>(options)</em></p>
|
130
|
-
|
131
|
-
<p>Deletes a registered client.</p>
|
132
|
-
|
133
|
-
<h2 id="EDIT">EDIT</h2>
|
134
|
-
|
135
|
-
<p><strong>client edit</strong> <em>client name</em> <em>(options)</em></p>
|
136
|
-
|
137
|
-
<p>Edit a registered client.</p>
|
138
|
-
|
139
|
-
<h2 id="LIST">LIST</h2>
|
140
|
-
|
141
|
-
<p><strong>client list</strong> <em>(options)</em></p>
|
142
|
-
|
143
|
-
<dl>
|
144
|
-
<dt><code>-w</code>, <code>--with-uri</code></dt><dd> Show corresponding URIs</dd>
|
145
|
-
</dl>
|
146
|
-
|
147
|
-
|
148
|
-
<p>List all registered clients.</p>
|
149
|
-
|
150
|
-
<h2 id="REREGISTER">REREGISTER</h2>
|
151
|
-
|
152
|
-
<p><strong>client reregister</strong> <em>client name</em> <em>(options)</em></p>
|
153
|
-
|
154
|
-
<dl>
|
155
|
-
<dt><code>-f</code>, <code>--file FILE</code></dt><dd>Write the key to a file</dd>
|
156
|
-
</dl>
|
157
|
-
|
158
|
-
|
159
|
-
<p>Regenerate the RSA keypair for a client. The public half will be stored
|
160
|
-
on the server and the private key displayed on <em>STDOUT</em> or written to
|
161
|
-
the named file. This operation will invalidate the previous keypair used
|
162
|
-
by the client, preventing it from authenticating with the Chef Server.
|
163
|
-
Use care when reregistering the validator client.</p>
|
164
|
-
|
165
|
-
<h2 id="SHOW">SHOW</h2>
|
166
|
-
|
167
|
-
<p><strong>client show</strong> <em>client name</em> <em>(options)</em></p>
|
168
|
-
|
169
|
-
<dl>
|
170
|
-
<dt><code>-a</code>, <code>--attribute ATTR</code></dt><dd>Show only one attribute</dd>
|
171
|
-
</dl>
|
172
|
-
|
173
|
-
|
174
|
-
<p>Show a client. Output format is determined by the --format option.</p>
|
175
|
-
|
176
|
-
<h2 id="DESCRIPTION">DESCRIPTION</h2>
|
177
|
-
|
178
|
-
<p>Clients are identities used for communication with the Chef Server API,
|
179
|
-
roughly equivalent to user accounts on the Chef Server, except that
|
180
|
-
clients only communicate with the Chef Server API and are authenticated
|
181
|
-
via request signatures.</p>
|
182
|
-
|
183
|
-
<p>In the typical case, there will be one client object on the server for
|
184
|
-
each node, and the corresponding client and node will have identical
|
185
|
-
names.</p>
|
186
|
-
|
187
|
-
<p>In the Chef authorization model, there is one special client, the
|
188
|
-
"validator", which is authorized to create new non-administrative
|
189
|
-
clients but has minimal privileges otherwise. This identity is used as a
|
190
|
-
sort of "guest account" to create a client identity when initially
|
191
|
-
setting up a host for management with Chef.</p>
|
192
|
-
|
193
|
-
<h2 id="SEE-ALSO">SEE ALSO</h2>
|
194
|
-
|
195
|
-
<p> <strong>knife-node</strong>(1)</p>
|
196
|
-
|
197
|
-
<h2 id="AUTHOR">AUTHOR</h2>
|
198
|
-
|
199
|
-
<p> Chef was written by Adam Jacob <a data-bare-link="true" href="mailto:adam@opscode.com">adam@opscode.com</a> with many contributions from the community.</p>
|
200
|
-
|
201
|
-
<h2 id="DOCUMENTATION">DOCUMENTATION</h2>
|
202
|
-
|
203
|
-
<p> This manual page was written by Joshua Timberman <a data-bare-link="true" href="mailto:joshua@opscode.com">joshua@opscode.com</a>.
|
204
|
-
Permission is granted to copy, distribute and / or modify this document under the terms of the Apache 2.0 License.</p>
|
205
|
-
|
206
|
-
<h2 id="CHEF">CHEF</h2>
|
207
|
-
|
208
|
-
<p> Knife is distributed with Chef. <a data-bare-link="true" href="http://wiki.opscode.com/display/chef/Home">http://wiki.opscode.com/display/chef/Home</a></p>
|
209
|
-
|
210
|
-
|
211
|
-
<ol class='man-decor man-foot man foot'>
|
212
|
-
<li class='tl'>Chef 10.16.0.rc.1</li>
|
213
|
-
<li class='tc'>October 2012</li>
|
214
|
-
<li class='tr'>knife-client(1)</li>
|
215
|
-
</ol>
|
216
|
-
|
217
|
-
</div>
|
218
|
-
</body>
|
219
|
-
</html>
|