chef 11.0.0 → 11.2.0.rc.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/distro/common/html/chef-client.8.html +3 -3
- data/distro/common/html/chef-expander.8.html +3 -3
- data/distro/common/html/chef-expanderctl.8.html +3 -3
- data/distro/common/html/chef-server-webui.8.html +3 -3
- data/distro/common/html/chef-server.8.html +3 -3
- data/distro/common/html/chef-shell.1.html +7 -7
- data/distro/common/html/chef-solo.8.html +3 -3
- data/distro/common/html/chef-solr.8.html +3 -3
- data/distro/common/html/knife-bootstrap.1.html +3 -3
- data/distro/common/html/knife-client.1.html +4 -4
- data/distro/common/html/knife-configure.1.html +3 -3
- data/distro/common/html/knife-cookbook-site.1.html +6 -6
- data/distro/common/html/knife-cookbook.1.html +7 -7
- data/distro/common/html/knife-data-bag.1.html +3 -3
- data/distro/common/html/knife-environment.1.html +3 -3
- 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 +6 -6
- data/distro/common/html/knife-search.1.html +5 -5
- data/distro/common/html/knife-ssh.1.html +3 -3
- data/distro/common/html/knife-status.1.html +4 -4
- data/distro/common/html/knife-tag.1.html +3 -3
- data/distro/common/html/knife.1.html +11 -11
- data/distro/common/man/man1/chef-shell.1 +1 -1
- data/distro/common/man/man1/knife-bootstrap.1 +1 -1
- data/distro/common/man/man1/knife-client.1 +1 -1
- data/distro/common/man/man1/knife-configure.1 +1 -1
- 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/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/knife/configure.rb +16 -13
- data/lib/chef/knife/user_create.rb +93 -0
- data/lib/chef/knife/user_delete.rb +46 -0
- data/lib/chef/knife/user_edit.rb +53 -0
- data/lib/chef/knife/user_list.rb +42 -0
- data/lib/chef/knife/user_reregister.rb +59 -0
- data/lib/chef/knife/user_show.rb +52 -0
- data/lib/chef/user.rb +182 -0
- data/lib/chef/version.rb +1 -1
- data/spec/unit/knife/configure_spec.rb +23 -26
- data/spec/unit/knife/user_create_spec.rb +86 -0
- data/spec/unit/knife/user_delete_spec.rb +39 -0
- data/spec/unit/knife/user_edit_spec.rb +42 -0
- data/spec/unit/knife/user_list_spec.rb +32 -0
- data/spec/unit/knife/user_reregister_spec.rb +53 -0
- data/spec/unit/knife/user_show_spec.rb +41 -0
- data/spec/unit/user_spec.rb +255 -0
- metadata +1246 -1227
@@ -172,25 +172,25 @@ run_list.</p>
|
|
172
172
|
<h2 id="SEE-ALSO">SEE ALSO</h2>
|
173
173
|
|
174
174
|
<p> <strong><span class="man-ref">knife-node<span class="s">(1)</span></span></strong> <strong><span class="man-ref">knife-environment<span class="s">(1)</span></span></strong>
|
175
|
-
<a href="http://wiki.opscode.com/display/chef/Roles"
|
176
|
-
<a href="http://wiki.opscode.com/display/chef/Attributes"
|
175
|
+
<a data-bare-link="true" href="http://wiki.opscode.com/display/chef/Roles">http://wiki.opscode.com/display/chef/Roles</a>
|
176
|
+
<a data-bare-link="true" href="http://wiki.opscode.com/display/chef/Attributes">http://wiki.opscode.com/display/chef/Attributes</a></p>
|
177
177
|
|
178
178
|
<h2 id="AUTHOR">AUTHOR</h2>
|
179
179
|
|
180
|
-
<p> Chef was written by Adam Jacob <a href="&#
|
180
|
+
<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>
|
181
181
|
|
182
182
|
<h2 id="DOCUMENTATION">DOCUMENTATION</h2>
|
183
183
|
|
184
|
-
<p> This manual page was written by Joshua Timberman <a href="m&#
|
184
|
+
<p> This manual page was written by Joshua Timberman <a data-bare-link="true" href="mailto:joshua@opscode.com">joshua@opscode.com</a>.
|
185
185
|
Permission is granted to copy, distribute and / or modify this document under the terms of the Apache 2.0 License.</p>
|
186
186
|
|
187
187
|
<h2 id="CHEF">CHEF</h2>
|
188
188
|
|
189
|
-
<p> Knife is distributed with Chef. <a href="http://wiki.opscode.com/display/chef/Home"
|
189
|
+
<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>
|
190
190
|
|
191
191
|
|
192
192
|
<ol class='man-decor man-foot man foot'>
|
193
|
-
<li class='tl'>Chef 11.0.
|
193
|
+
<li class='tl'>Chef 11.2.0.rc.1</li>
|
194
194
|
<li class='tc'>February 2013</li>
|
195
195
|
<li class='tr'>knife-role(1)</li>
|
196
196
|
</ol>
|
@@ -260,25 +260,25 @@ www.example.com:</p>
|
|
260
260
|
<h2 id="SEE-ALSO">SEE ALSO</h2>
|
261
261
|
|
262
262
|
<p> <strong>knife-ssh</strong>(1)
|
263
|
-
<a href="http://wiki.opscode.com/display/chef/Attributes"
|
263
|
+
<a data-bare-link="true" href="http://wiki.opscode.com/display/chef/Attributes">http://wiki.opscode.com/display/chef/Attributes</a>
|
264
264
|
<a href="http://lucene.apache.org/java/2_3_2/queryparsersyntax.html">Lucene Query Parser Syntax</a></p>
|
265
265
|
|
266
266
|
<h2 id="AUTHOR">AUTHOR</h2>
|
267
267
|
|
268
|
-
<p> Chef was written by Adam Jacob <a href="&#
|
268
|
+
<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>
|
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 data-bare-link="true" href="mailto:joshua@opscode.com">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>
|
276
276
|
|
277
|
-
<p> Knife is distributed with Chef. <a href="http://wiki.opscode.com/display/chef/Home"
|
277
|
+
<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>
|
278
278
|
|
279
279
|
|
280
280
|
<ol class='man-decor man-foot man foot'>
|
281
|
-
<li class='tl'>Chef 11.0.
|
281
|
+
<li class='tl'>Chef 11.2.0.rc.1</li>
|
282
282
|
<li class='tc'>February 2013</li>
|
283
283
|
<li class='tr'>knife-search(1)</li>
|
284
284
|
</ol>
|
@@ -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="&#
|
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,7 +146,7 @@ option.</dd>
|
|
146
146
|
|
147
147
|
|
148
148
|
<ol class='man-decor man-foot man foot'>
|
149
|
-
<li class='tl'>Chef 11.0.
|
149
|
+
<li class='tl'>Chef 11.2.0.rc.1</li>
|
150
150
|
<li class='tc'>February 2013</li>
|
151
151
|
<li class='tr'>knife-ssh(1)</li>
|
152
152
|
</ol>
|
@@ -105,20 +105,20 @@ 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 data-bare-link="true" href="mailto:adam@opscode.com">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 data-bare-link="true" href="mailto:joshua@opscode.com">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>
|
116
116
|
|
117
|
-
<p> Knife is distributed with Chef. <a href="http://wiki.opscode.com/display/chef/Home"
|
117
|
+
<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>
|
118
118
|
|
119
119
|
|
120
120
|
<ol class='man-decor man-foot man foot'>
|
121
|
-
<li class='tl'>Chef 11.0.
|
121
|
+
<li class='tl'>Chef 11.2.0.rc.1</li>
|
122
122
|
<li class='tc'>February 2013</li>
|
123
123
|
<li class='tr'>knife-status(1)</li>
|
124
124
|
</ol>
|
@@ -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="ma&#
|
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,7 +127,7 @@
|
|
127
127
|
|
128
128
|
|
129
129
|
<ol class='man-decor man-foot man foot'>
|
130
|
-
<li class='tl'>Chef 11.0.
|
130
|
+
<li class='tl'>Chef 11.2.0.rc.1</li>
|
131
131
|
<li class='tc'>February 2013</li>
|
132
132
|
<li class='tr'>knife-tag(1)</li>
|
133
133
|
</ol>
|
@@ -274,38 +274,38 @@ data editing entirely.</dd>
|
|
274
274
|
<strong><span class="man-ref">knife-node<span class="s">(1)</span></span></strong> <strong><span class="man-ref">knife-recipe<span class="s">(1)</span></span></strong> <strong><span class="man-ref">knife-role<span class="s">(1)</span></span></strong>
|
275
275
|
<strong><span class="man-ref">knife-search<span class="s">(1)</span></span></strong> <strong><span class="man-ref">knife-ssh<span class="s">(1)</span></span></strong> <strong><span class="man-ref">knife-tag<span class="s">(1)</span></span></strong></p>
|
276
276
|
|
277
|
-
<p> Complete Chef documentation is available online: <a href="http://wiki.opscode.com/display/chef/Home/"
|
277
|
+
<p> Complete Chef documentation is available online: <a data-bare-link="true" href="http://wiki.opscode.com/display/chef/Home/">http://wiki.opscode.com/display/chef/Home/</a></p>
|
278
278
|
|
279
|
-
<p> JSON is JavaScript Object Notation <a href="http://json.org/"
|
279
|
+
<p> JSON is JavaScript Object Notation <a data-bare-link="true" href="http://json.org/">http://json.org/</a></p>
|
280
280
|
|
281
|
-
<p> SOLR is an open source search engine. <a href="http://lucene.apache.org/solr/"
|
281
|
+
<p> SOLR is an open source search engine. <a data-bare-link="true" href="http://lucene.apache.org/solr/">http://lucene.apache.org/solr/</a></p>
|
282
282
|
|
283
|
-
<p> <strong><span class="man-ref">git<span class="s">(1)</span></span></strong> is a version control system <a href="http://git-scm.com/"
|
283
|
+
<p> <strong><span class="man-ref">git<span class="s">(1)</span></span></strong> is a version control system <a data-bare-link="true" href="http://git-scm.com/">http://git-scm.com/</a></p>
|
284
284
|
|
285
|
-
<p> This manual page was generated from Markdown with <strong><span class="man-ref">ronn<span class="s">(1)</span></span></strong> <a href="http://rtomayko.github.com/ronn/ronn.1.html"
|
285
|
+
<p> This manual page was generated from Markdown with <strong><span class="man-ref">ronn<span class="s">(1)</span></span></strong> <a data-bare-link="true" href="http://rtomayko.github.com/ronn/ronn.1.html">http://rtomayko.github.com/ronn/ronn.1.html</a></p>
|
286
286
|
|
287
287
|
<h2 id="AUTHOR">AUTHOR</h2>
|
288
288
|
|
289
|
-
<p> Chef was written by Adam Jacob <a href="&#
|
290
|
-
(<a href="http://www.opscode.com"
|
289
|
+
<p> Chef was written by Adam Jacob <a data-bare-link="true" href="mailto:adam@opscode.com">adam@opscode.com</a> of Opscode
|
290
|
+
(<a data-bare-link="true" href="http://www.opscode.com">http://www.opscode.com</a>), with contributions from the community.</p>
|
291
291
|
|
292
292
|
<h2 id="DOCUMENTATION">DOCUMENTATION</h2>
|
293
293
|
|
294
|
-
<p> This manual page was written by Joshua Timberman <a href="&#
|
294
|
+
<p> This manual page was written by Joshua Timberman <a data-bare-link="true" href="mailto:joshua@opscode.com">joshua@opscode.com</a>.</p>
|
295
295
|
|
296
296
|
<h2 id="LICENSE">LICENSE</h2>
|
297
297
|
|
298
298
|
<p> Both Chef and this documentation are released under the terms of the
|
299
|
-
Apache 2.0 License. You may view the license online: <a href="http://www.apache.org/licenses/LICENSE-2.0.html"
|
299
|
+
Apache 2.0 License. You may view the license online: <a data-bare-link="true" href="http://www.apache.org/licenses/LICENSE-2.0.html">http://www.apache.org/licenses/LICENSE-2.0.html</a>
|
300
300
|
On some systems, the complete text of the Apache 2.0 License may be found in <code>/usr/share/common-licenses/Apache-2.0</code>.</p>
|
301
301
|
|
302
302
|
<h2 id="CHEF">CHEF</h2>
|
303
303
|
|
304
|
-
<p> Knife is distributed with Chef. <a href="http://wiki.opscode.com/display/chef/Home"
|
304
|
+
<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>
|
305
305
|
|
306
306
|
|
307
307
|
<ol class='man-decor man-foot man foot'>
|
308
|
-
<li class='tl'>Chef 11.0.
|
308
|
+
<li class='tl'>Chef 11.2.0.rc.1</li>
|
309
309
|
<li class='tc'>February 2013</li>
|
310
310
|
<li class='tr'>knife(1)</li>
|
311
311
|
</ol>
|
@@ -1,7 +1,7 @@
|
|
1
1
|
.\" generated with Ronn/v0.7.3
|
2
2
|
.\" http://github.com/rtomayko/ronn/tree/0.7.3
|
3
3
|
.
|
4
|
-
.TH "CHEF\-SHELL" "1" "February 2013" "Chef 11.0.
|
4
|
+
.TH "CHEF\-SHELL" "1" "February 2013" "Chef 11.2.0.rc.1" "Chef Manual"
|
5
5
|
.
|
6
6
|
.SH "NAME"
|
7
7
|
\fBchef\-shell\fR \- Interactive Chef Console
|
@@ -1,7 +1,7 @@
|
|
1
1
|
.\" generated with Ronn/v0.7.3
|
2
2
|
.\" http://github.com/rtomayko/ronn/tree/0.7.3
|
3
3
|
.
|
4
|
-
.TH "KNIFE\-BOOTSTRAP" "1" "February 2013" "Chef 11.0.
|
4
|
+
.TH "KNIFE\-BOOTSTRAP" "1" "February 2013" "Chef 11.2.0.rc.1" "Chef Manual"
|
5
5
|
.
|
6
6
|
.SH "NAME"
|
7
7
|
\fBknife\-bootstrap\fR \- Install Chef Client on a remote host
|
@@ -1,7 +1,7 @@
|
|
1
1
|
.\" generated with Ronn/v0.7.3
|
2
2
|
.\" http://github.com/rtomayko/ronn/tree/0.7.3
|
3
3
|
.
|
4
|
-
.TH "KNIFE\-CLIENT" "1" "February 2013" "Chef 11.0.
|
4
|
+
.TH "KNIFE\-CLIENT" "1" "February 2013" "Chef 11.2.0.rc.1" "Chef Manual"
|
5
5
|
.
|
6
6
|
.SH "NAME"
|
7
7
|
\fBknife\-client\fR \- Manage Chef API Clients
|
@@ -1,7 +1,7 @@
|
|
1
1
|
.\" generated with Ronn/v0.7.3
|
2
2
|
.\" http://github.com/rtomayko/ronn/tree/0.7.3
|
3
3
|
.
|
4
|
-
.TH "KNIFE\-CONFIGURE" "1" "February 2013" "Chef 11.0.
|
4
|
+
.TH "KNIFE\-CONFIGURE" "1" "February 2013" "Chef 11.2.0.rc.1" "Chef Manual"
|
5
5
|
.
|
6
6
|
.SH "NAME"
|
7
7
|
\fBknife\-configure\fR \- Generate configuration files for knife or Chef Client
|
@@ -1,7 +1,7 @@
|
|
1
1
|
.\" generated with Ronn/v0.7.3
|
2
2
|
.\" http://github.com/rtomayko/ronn/tree/0.7.3
|
3
3
|
.
|
4
|
-
.TH "KNIFE\-COOKBOOK\-SITE" "1" "February 2013" "Chef 11.0.
|
4
|
+
.TH "KNIFE\-COOKBOOK\-SITE" "1" "February 2013" "Chef 11.2.0.rc.1" "Chef Manual"
|
5
5
|
.
|
6
6
|
.SH "NAME"
|
7
7
|
\fBknife\-cookbook\-site\fR \- Install and update open source cookbooks
|
@@ -1,7 +1,7 @@
|
|
1
1
|
.\" generated with Ronn/v0.7.3
|
2
2
|
.\" http://github.com/rtomayko/ronn/tree/0.7.3
|
3
3
|
.
|
4
|
-
.TH "KNIFE\-COOKBOOK" "1" "February 2013" "Chef 11.0.
|
4
|
+
.TH "KNIFE\-COOKBOOK" "1" "February 2013" "Chef 11.2.0.rc.1" "Chef Manual"
|
5
5
|
.
|
6
6
|
.SH "NAME"
|
7
7
|
\fBknife\-cookbook\fR \- upload and manage chef cookbooks
|
@@ -1,7 +1,7 @@
|
|
1
1
|
.\" generated with Ronn/v0.7.3
|
2
2
|
.\" http://github.com/rtomayko/ronn/tree/0.7.3
|
3
3
|
.
|
4
|
-
.TH "KNIFE\-DATA\-BAG" "1" "February 2013" "Chef 11.0.
|
4
|
+
.TH "KNIFE\-DATA\-BAG" "1" "February 2013" "Chef 11.2.0.rc.1" "Chef Manual"
|
5
5
|
.
|
6
6
|
.SH "NAME"
|
7
7
|
\fBknife\-data\-bag\fR \- Store arbitrary data on a Chef Server
|
@@ -1,7 +1,7 @@
|
|
1
1
|
.\" generated with Ronn/v0.7.3
|
2
2
|
.\" http://github.com/rtomayko/ronn/tree/0.7.3
|
3
3
|
.
|
4
|
-
.TH "KNIFE\-ENVIRONMENT" "1" "February 2013" "Chef 11.0.
|
4
|
+
.TH "KNIFE\-ENVIRONMENT" "1" "February 2013" "Chef 11.2.0.rc.1" "Chef Manual"
|
5
5
|
.
|
6
6
|
.SH "NAME"
|
7
7
|
\fBknife\-environment\fR \- Define cookbook policies for the environments in your infrastructure
|
@@ -1,7 +1,7 @@
|
|
1
1
|
.\" generated with Ronn/v0.7.3
|
2
2
|
.\" http://github.com/rtomayko/ronn/tree/0.7.3
|
3
3
|
.
|
4
|
-
.TH "KNIFE\-EXEC" "1" "February 2013" "Chef 11.0.
|
4
|
+
.TH "KNIFE\-EXEC" "1" "February 2013" "Chef 11.2.0.rc.1" "Chef Manual"
|
5
5
|
.
|
6
6
|
.SH "NAME"
|
7
7
|
\fBknife\-exec\fR \- Run user scripts using the Chef API DSL
|
@@ -1,7 +1,7 @@
|
|
1
1
|
.\" generated with Ronn/v0.7.3
|
2
2
|
.\" http://github.com/rtomayko/ronn/tree/0.7.3
|
3
3
|
.
|
4
|
-
.TH "KNIFE\-INDEX" "1" "February 2013" "Chef 11.0.
|
4
|
+
.TH "KNIFE\-INDEX" "1" "February 2013" "Chef 11.2.0.rc.1" "Chef Manual"
|
5
5
|
.
|
6
6
|
.SH "NAME"
|
7
7
|
\fBknife\-index\fR \- Rebuild the search index on a Chef Server
|
@@ -1,7 +1,7 @@
|
|
1
1
|
.\" generated with Ronn/v0.7.3
|
2
2
|
.\" http://github.com/rtomayko/ronn/tree/0.7.3
|
3
3
|
.
|
4
|
-
.TH "KNIFE\-NODE" "1" "February 2013" "Chef 11.0.
|
4
|
+
.TH "KNIFE\-NODE" "1" "February 2013" "Chef 11.2.0.rc.1" "Chef Manual"
|
5
5
|
.
|
6
6
|
.SH "NAME"
|
7
7
|
\fBknife\-node\fR \- Manage the hosts in your infrastructure
|
@@ -1,7 +1,7 @@
|
|
1
1
|
.\" generated with Ronn/v0.7.3
|
2
2
|
.\" http://github.com/rtomayko/ronn/tree/0.7.3
|
3
3
|
.
|
4
|
-
.TH "KNIFE\-ROLE" "1" "February 2013" "Chef 11.0.
|
4
|
+
.TH "KNIFE\-ROLE" "1" "February 2013" "Chef 11.2.0.rc.1" "Chef Manual"
|
5
5
|
.
|
6
6
|
.SH "NAME"
|
7
7
|
\fBknife\-role\fR \- Group common configuration settings
|
@@ -1,7 +1,7 @@
|
|
1
1
|
.\" generated with Ronn/v0.7.3
|
2
2
|
.\" http://github.com/rtomayko/ronn/tree/0.7.3
|
3
3
|
.
|
4
|
-
.TH "KNIFE\-SEARCH" "1" "February 2013" "Chef 11.0.
|
4
|
+
.TH "KNIFE\-SEARCH" "1" "February 2013" "Chef 11.2.0.rc.1" "Chef Manual"
|
5
5
|
.
|
6
6
|
.SH "NAME"
|
7
7
|
\fBknife\-search\fR \- Find objects on a Chef Server by query
|
@@ -1,7 +1,7 @@
|
|
1
1
|
.\" generated with Ronn/v0.7.3
|
2
2
|
.\" http://github.com/rtomayko/ronn/tree/0.7.3
|
3
3
|
.
|
4
|
-
.TH "KNIFE\-SSH" "1" "February 2013" "Chef 11.0.
|
4
|
+
.TH "KNIFE\-SSH" "1" "February 2013" "Chef 11.2.0.rc.1" "Chef Manual"
|
5
5
|
.
|
6
6
|
.SH "NAME"
|
7
7
|
\fBknife\-ssh\fR \- Run a command or interactive session on multiple remote hosts
|
@@ -1,7 +1,7 @@
|
|
1
1
|
.\" generated with Ronn/v0.7.3
|
2
2
|
.\" http://github.com/rtomayko/ronn/tree/0.7.3
|
3
3
|
.
|
4
|
-
.TH "KNIFE\-STATUS" "1" "February 2013" "Chef 11.0.
|
4
|
+
.TH "KNIFE\-STATUS" "1" "February 2013" "Chef 11.2.0.rc.1" "Chef Manual"
|
5
5
|
.
|
6
6
|
.SH "NAME"
|
7
7
|
\fBknife\-status\fR \- Display status information for the nodes in your infrastructure
|
@@ -1,7 +1,7 @@
|
|
1
1
|
.\" generated with Ronn/v0.7.3
|
2
2
|
.\" http://github.com/rtomayko/ronn/tree/0.7.3
|
3
3
|
.
|
4
|
-
.TH "KNIFE\-TAG" "1" "February 2013" "Chef 11.0.
|
4
|
+
.TH "KNIFE\-TAG" "1" "February 2013" "Chef 11.2.0.rc.1" "Chef Manual"
|
5
5
|
.
|
6
6
|
.SH "NAME"
|
7
7
|
\fBknife\-tag\fR \- Apply tags to nodes on a Chef Server
|
@@ -1,7 +1,7 @@
|
|
1
1
|
.\" generated with Ronn/v0.7.3
|
2
2
|
.\" http://github.com/rtomayko/ronn/tree/0.7.3
|
3
3
|
.
|
4
|
-
.TH "KNIFE" "1" "February 2013" "Chef 11.0.
|
4
|
+
.TH "KNIFE" "1" "February 2013" "Chef 11.2.0.rc.1" "Chef Manual"
|
5
5
|
.
|
6
6
|
.SH "NAME"
|
7
7
|
\fBknife\fR \- Chef Server API client utility
|
@@ -1,7 +1,7 @@
|
|
1
1
|
.\" generated with Ronn/v0.7.3
|
2
2
|
.\" http://github.com/rtomayko/ronn/tree/0.7.3
|
3
3
|
.
|
4
|
-
.TH "CHEF\-CLIENT" "8" "February 2013" "Chef 11.0.
|
4
|
+
.TH "CHEF\-CLIENT" "8" "February 2013" "Chef 11.2.0.rc.1" "Chef Manual"
|
5
5
|
.
|
6
6
|
.SH "NAME"
|
7
7
|
\fBchef\-client\fR \- Runs a client node connecting to a chef\-server\.
|
@@ -1,7 +1,7 @@
|
|
1
1
|
.\" generated with Ronn/v0.7.3
|
2
2
|
.\" http://github.com/rtomayko/ronn/tree/0.7.3
|
3
3
|
.
|
4
|
-
.TH "CHEF\-EXPANDER" "8" "February 2013" "Chef 11.0.
|
4
|
+
.TH "CHEF\-EXPANDER" "8" "February 2013" "Chef 11.2.0.rc.1" "Chef Manual"
|
5
5
|
.
|
6
6
|
.SH "NAME"
|
7
7
|
\fBchef\-expander\fR \- fetches messages from RabbitMQ, processes, and loads into chef\-solr
|
@@ -1,7 +1,7 @@
|
|
1
1
|
.\" generated with Ronn/v0.7.3
|
2
2
|
.\" http://github.com/rtomayko/ronn/tree/0.7.3
|
3
3
|
.
|
4
|
-
.TH "CHEF\-EXPANDERCTL" "8" "February 2013" "Chef 11.0.
|
4
|
+
.TH "CHEF\-EXPANDERCTL" "8" "February 2013" "Chef 11.2.0.rc.1" "Chef Manual"
|
5
5
|
.
|
6
6
|
.SH "NAME"
|
7
7
|
\fBchef\-expanderctl\fR \- management program for chef\-expander
|
@@ -1,7 +1,7 @@
|
|
1
1
|
.\" generated with Ronn/v0.7.3
|
2
2
|
.\" http://github.com/rtomayko/ronn/tree/0.7.3
|
3
3
|
.
|
4
|
-
.TH "CHEF\-SERVER\-WEBUI" "8" "February 2013" "Chef 11.0.
|
4
|
+
.TH "CHEF\-SERVER\-WEBUI" "8" "February 2013" "Chef 11.2.0.rc.1" "Chef Manual"
|
5
5
|
.
|
6
6
|
.SH "NAME"
|
7
7
|
\fBchef\-server\-webui\fR \- Start the Chef Server merb application slice providing Web User Interface (Management Console)\.
|
@@ -1,7 +1,7 @@
|
|
1
1
|
.\" generated with Ronn/v0.7.3
|
2
2
|
.\" http://github.com/rtomayko/ronn/tree/0.7.3
|
3
3
|
.
|
4
|
-
.TH "CHEF\-SERVER" "8" "February 2013" "Chef 11.0.
|
4
|
+
.TH "CHEF\-SERVER" "8" "February 2013" "Chef 11.2.0.rc.1" "Chef Manual"
|
5
5
|
.
|
6
6
|
.SH "NAME"
|
7
7
|
\fBchef\-server\fR \- Start the Chef Server merb application slice\.
|
@@ -1,7 +1,7 @@
|
|
1
1
|
.\" generated with Ronn/v0.7.3
|
2
2
|
.\" http://github.com/rtomayko/ronn/tree/0.7.3
|
3
3
|
.
|
4
|
-
.TH "CHEF\-SOLO" "8" "February 2013" "Chef 11.0.
|
4
|
+
.TH "CHEF\-SOLO" "8" "February 2013" "Chef 11.2.0.rc.1" "Chef Manual"
|
5
5
|
.
|
6
6
|
.SH "NAME"
|
7
7
|
\fBchef\-solo\fR \- Runs chef in solo mode against a specified cookbook location\.
|
@@ -1,7 +1,7 @@
|
|
1
1
|
.\" generated with Ronn/v0.7.3
|
2
2
|
.\" http://github.com/rtomayko/ronn/tree/0.7.3
|
3
3
|
.
|
4
|
-
.TH "CHEF\-SOLR" "8" "February 2013" "Chef 11.0.
|
4
|
+
.TH "CHEF\-SOLR" "8" "February 2013" "Chef 11.2.0.rc.1" "Chef Manual"
|
5
5
|
.
|
6
6
|
.SH "NAME"
|
7
7
|
\fBchef\-solr\fR \- Runs as Chef\'s search server
|
data/lib/chef/knife/configure.rb
CHANGED
@@ -27,6 +27,7 @@ class Chef
|
|
27
27
|
deps do
|
28
28
|
require 'ohai'
|
29
29
|
Chef::Knife::ClientCreate.load_deps
|
30
|
+
Chef::Knife::UserCreate.load_deps
|
30
31
|
end
|
31
32
|
|
32
33
|
banner "knife configure (options)"
|
@@ -40,15 +41,15 @@ class Chef
|
|
40
41
|
:short => "-i",
|
41
42
|
:long => "--initial",
|
42
43
|
:boolean => true,
|
43
|
-
:description => "Create an initial API
|
44
|
+
:description => "Create an initial API User"
|
44
45
|
|
45
46
|
option :admin_client_name,
|
46
47
|
:long => "--admin-client-name NAME",
|
47
|
-
:description => "The existing admin clientname (usually
|
48
|
+
:description => "The existing admin clientname (usually admin)"
|
48
49
|
|
49
50
|
option :admin_client_key,
|
50
51
|
:long => "--admin-client-key PATH",
|
51
|
-
:description => "The path to the admin client's private key (usually a file named
|
52
|
+
:description => "The path to the admin client's private key (usually a file named admin.pem)"
|
52
53
|
|
53
54
|
option :validation_client_name,
|
54
55
|
:long => "--validation-client-name NAME",
|
@@ -93,13 +94,15 @@ EOH
|
|
93
94
|
Chef::Config[:chef_server_url] = chef_server
|
94
95
|
Chef::Config[:node_name] = admin_client_name
|
95
96
|
Chef::Config[:client_key] = admin_client_key
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
|
97
|
+
user_create = Chef::Knife::UserCreate.new
|
98
|
+
user_create.name_args = [ new_client_name ]
|
99
|
+
user_create.config[:user_password] = config[:user_password] ||
|
100
|
+
ui.ask("Please enter a password for the new user: ") {|q| q.echo = false}
|
101
|
+
user_create.config[:admin] = true
|
102
|
+
user_create.config[:file] = new_client_key
|
103
|
+
user_create.config[:yes] = true
|
104
|
+
user_create.config[:disable_editing] = true
|
105
|
+
user_create.run
|
103
106
|
else
|
104
107
|
ui.msg("*****")
|
105
108
|
ui.msg("")
|
@@ -132,9 +135,9 @@ EOH
|
|
132
135
|
server_name = guess_servername
|
133
136
|
@chef_server = config[:chef_server_url] || ask_question("Please enter the chef server URL: ", :default => "http://#{server_name}:4000")
|
134
137
|
if config[:initial]
|
135
|
-
@new_client_name = config[:node_name] || ask_question("Please enter a
|
136
|
-
@admin_client_name = config[:admin_client_name] || ask_question("Please enter the existing admin
|
137
|
-
@admin_client_key = config[:admin_client_key] || ask_question("Please enter the location of the existing admin
|
138
|
+
@new_client_name = config[:node_name] || ask_question("Please enter a name for the new user: ", :default => Etc.getlogin)
|
139
|
+
@admin_client_name = config[:admin_client_name] || ask_question("Please enter the existing admin name: ", :default => 'admin')
|
140
|
+
@admin_client_key = config[:admin_client_key] || ask_question("Please enter the location of the existing admin's private key: ", :default => '/etc/chef/admin.pem')
|
138
141
|
@admin_client_key = File.expand_path(@admin_client_key)
|
139
142
|
else
|
140
143
|
@new_client_name = config[:node_name] || ask_question("Please enter an existing username or clientname for the API: ", :default => Etc.getlogin)
|