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.
Files changed (66) hide show
  1. data/distro/common/html/chef-client.8.html +3 -3
  2. data/distro/common/html/chef-expander.8.html +3 -3
  3. data/distro/common/html/chef-expanderctl.8.html +3 -3
  4. data/distro/common/html/chef-server-webui.8.html +3 -3
  5. data/distro/common/html/chef-server.8.html +3 -3
  6. data/distro/common/html/chef-shell.1.html +7 -7
  7. data/distro/common/html/chef-solo.8.html +3 -3
  8. data/distro/common/html/chef-solr.8.html +3 -3
  9. data/distro/common/html/knife-bootstrap.1.html +3 -3
  10. data/distro/common/html/knife-client.1.html +4 -4
  11. data/distro/common/html/knife-configure.1.html +3 -3
  12. data/distro/common/html/knife-cookbook-site.1.html +6 -6
  13. data/distro/common/html/knife-cookbook.1.html +7 -7
  14. data/distro/common/html/knife-data-bag.1.html +3 -3
  15. data/distro/common/html/knife-environment.1.html +3 -3
  16. data/distro/common/html/knife-exec.1.html +4 -4
  17. data/distro/common/html/knife-index.1.html +4 -4
  18. data/distro/common/html/knife-node.1.html +4 -4
  19. data/distro/common/html/knife-role.1.html +6 -6
  20. data/distro/common/html/knife-search.1.html +5 -5
  21. data/distro/common/html/knife-ssh.1.html +3 -3
  22. data/distro/common/html/knife-status.1.html +4 -4
  23. data/distro/common/html/knife-tag.1.html +3 -3
  24. data/distro/common/html/knife.1.html +11 -11
  25. data/distro/common/man/man1/chef-shell.1 +1 -1
  26. data/distro/common/man/man1/knife-bootstrap.1 +1 -1
  27. data/distro/common/man/man1/knife-client.1 +1 -1
  28. data/distro/common/man/man1/knife-configure.1 +1 -1
  29. data/distro/common/man/man1/knife-cookbook-site.1 +1 -1
  30. data/distro/common/man/man1/knife-cookbook.1 +1 -1
  31. data/distro/common/man/man1/knife-data-bag.1 +1 -1
  32. data/distro/common/man/man1/knife-environment.1 +1 -1
  33. data/distro/common/man/man1/knife-exec.1 +1 -1
  34. data/distro/common/man/man1/knife-index.1 +1 -1
  35. data/distro/common/man/man1/knife-node.1 +1 -1
  36. data/distro/common/man/man1/knife-role.1 +1 -1
  37. data/distro/common/man/man1/knife-search.1 +1 -1
  38. data/distro/common/man/man1/knife-ssh.1 +1 -1
  39. data/distro/common/man/man1/knife-status.1 +1 -1
  40. data/distro/common/man/man1/knife-tag.1 +1 -1
  41. data/distro/common/man/man1/knife.1 +1 -1
  42. data/distro/common/man/man8/chef-client.8 +1 -1
  43. data/distro/common/man/man8/chef-expander.8 +1 -1
  44. data/distro/common/man/man8/chef-expanderctl.8 +1 -1
  45. data/distro/common/man/man8/chef-server-webui.8 +1 -1
  46. data/distro/common/man/man8/chef-server.8 +1 -1
  47. data/distro/common/man/man8/chef-solo.8 +1 -1
  48. data/distro/common/man/man8/chef-solr.8 +1 -1
  49. data/lib/chef/knife/configure.rb +16 -13
  50. data/lib/chef/knife/user_create.rb +93 -0
  51. data/lib/chef/knife/user_delete.rb +46 -0
  52. data/lib/chef/knife/user_edit.rb +53 -0
  53. data/lib/chef/knife/user_list.rb +42 -0
  54. data/lib/chef/knife/user_reregister.rb +59 -0
  55. data/lib/chef/knife/user_show.rb +52 -0
  56. data/lib/chef/user.rb +182 -0
  57. data/lib/chef/version.rb +1 -1
  58. data/spec/unit/knife/configure_spec.rb +23 -26
  59. data/spec/unit/knife/user_create_spec.rb +86 -0
  60. data/spec/unit/knife/user_delete_spec.rb +39 -0
  61. data/spec/unit/knife/user_edit_spec.rb +42 -0
  62. data/spec/unit/knife/user_list_spec.rb +32 -0
  63. data/spec/unit/knife/user_reregister_spec.rb +53 -0
  64. data/spec/unit/knife/user_show_spec.rb +41 -0
  65. data/spec/unit/user_spec.rb +255 -0
  66. 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" data-bare-link="true">http://wiki.opscode.com/display/chef/Roles</a>
176
- <a href="http://wiki.opscode.com/display/chef/Attributes" data-bare-link="true">http://wiki.opscode.com/display/chef/Attributes</a></p>
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="&#109;&#97;&#105;&#108;&#116;&#x6f;&#x3a;&#x61;&#x64;&#97;&#x6d;&#64;&#111;&#x70;&#115;&#x63;&#x6f;&#100;&#101;&#x2e;&#x63;&#x6f;&#109;" data-bare-link="true">&#97;&#100;&#97;&#x6d;&#x40;&#111;&#112;&#x73;&#x63;&#x6f;&#x64;&#x65;&#x2e;&#x63;&#x6f;&#109;</a> with many contributions from the community.</p>
180
+ <p> Chef was written by Adam Jacob <a data-bare-link="true" href="&#x6d;&#97;&#105;&#x6c;&#116;&#111;&#58;&#x61;&#x64;&#x61;&#x6d;&#64;&#x6f;&#112;&#115;&#99;&#x6f;&#x64;&#101;&#46;&#99;&#111;&#109;">&#97;&#100;&#x61;&#x6d;&#x40;&#111;&#x70;&#x73;&#x63;&#111;&#x64;&#x65;&#46;&#x63;&#x6f;&#x6d;</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="&#109;&#x61;&#x69;&#108;&#x74;&#x6f;&#58;&#106;&#111;&#x73;&#104;&#117;&#97;&#x40;&#111;&#112;&#115;&#99;&#111;&#x64;&#x65;&#46;&#99;&#111;&#x6d;" data-bare-link="true">&#106;&#x6f;&#115;&#x68;&#117;&#x61;&#x40;&#x6f;&#112;&#x73;&#99;&#x6f;&#x64;&#101;&#46;&#99;&#x6f;&#109;</a>.
184
+ <p> This manual page was written by Joshua Timberman <a data-bare-link="true" href="&#109;&#97;&#x69;&#x6c;&#x74;&#x6f;&#x3a;&#x6a;&#111;&#115;&#x68;&#x75;&#97;&#64;&#x6f;&#112;&#115;&#99;&#x6f;&#x64;&#101;&#x2e;&#99;&#111;&#x6d;">&#x6a;&#x6f;&#x73;&#x68;&#117;&#97;&#x40;&#111;&#x70;&#115;&#x63;&#x6f;&#100;&#x65;&#x2e;&#99;&#111;&#109;</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" data-bare-link="true">http://wiki.opscode.com/display/chef/Home</a></p>
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.0</li>
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" data-bare-link="true">http://wiki.opscode.com/display/chef/Attributes</a>
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="&#109;&#97;&#105;&#108;&#116;&#x6f;&#x3a;&#x61;&#x64;&#97;&#x6d;&#64;&#111;&#x70;&#115;&#x63;&#x6f;&#100;&#101;&#x2e;&#x63;&#x6f;&#109;" data-bare-link="true">&#97;&#100;&#97;&#x6d;&#x40;&#111;&#112;&#x73;&#x63;&#x6f;&#x64;&#x65;&#x2e;&#x63;&#x6f;&#109;</a> with many contributions from the community.</p>
268
+ <p> Chef was written by Adam Jacob <a data-bare-link="true" href="&#x6d;&#97;&#x69;&#x6c;&#x74;&#x6f;&#58;&#x61;&#x64;&#97;&#109;&#x40;&#x6f;&#x70;&#115;&#x63;&#x6f;&#x64;&#101;&#x2e;&#x63;&#111;&#109;">&#97;&#100;&#x61;&#109;&#x40;&#x6f;&#112;&#x73;&#99;&#111;&#100;&#101;&#x2e;&#x63;&#111;&#109;</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="&#109;&#x61;&#x69;&#108;&#x74;&#x6f;&#58;&#106;&#111;&#x73;&#104;&#117;&#97;&#x40;&#111;&#112;&#115;&#99;&#111;&#x64;&#x65;&#46;&#99;&#111;&#x6d;" data-bare-link="true">&#106;&#x6f;&#115;&#x68;&#117;&#x61;&#x40;&#x6f;&#112;&#x73;&#99;&#x6f;&#x64;&#101;&#46;&#99;&#x6f;&#109;</a>.
272
+ <p> This manual page was written by Joshua Timberman <a data-bare-link="true" href="&#109;&#97;&#105;&#x6c;&#x74;&#x6f;&#x3a;&#x6a;&#x6f;&#115;&#x68;&#117;&#x61;&#x40;&#111;&#112;&#x73;&#x63;&#111;&#100;&#101;&#46;&#x63;&#111;&#109;">&#x6a;&#111;&#x73;&#104;&#117;&#97;&#64;&#111;&#112;&#x73;&#99;&#111;&#100;&#x65;&#x2e;&#99;&#111;&#x6d;</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" data-bare-link="true">http://wiki.opscode.com/display/chef/Home</a></p>
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.0</li>
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="&#109;&#97;&#105;&#108;&#116;&#x6f;&#x3a;&#x61;&#x64;&#97;&#x6d;&#64;&#111;&#x70;&#115;&#x63;&#x6f;&#100;&#101;&#x2e;&#x63;&#x6f;&#109;" data-bare-link="true">&#97;&#100;&#97;&#x6d;&#x40;&#111;&#112;&#x73;&#x63;&#x6f;&#x64;&#x65;&#x2e;&#x63;&#x6f;&#109;</a> with many contributions from the community.</p>
136
+ <p> Chef was written by Adam Jacob <a href="&#x6d;&#97;&#x69;&#x6c;&#x74;&#x6f;&#58;&#x61;&#x64;&#97;&#109;&#x40;&#x6f;&#x70;&#115;&#x63;&#x6f;&#x64;&#101;&#x2e;&#x63;&#111;&#109;" data-bare-link="true">&#97;&#100;&#x61;&#109;&#x40;&#x6f;&#112;&#x73;&#99;&#111;&#100;&#101;&#x2e;&#x63;&#111;&#109;</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="&#109;&#x61;&#x69;&#108;&#x74;&#x6f;&#58;&#106;&#111;&#x73;&#104;&#117;&#97;&#x40;&#111;&#112;&#115;&#99;&#111;&#x64;&#x65;&#46;&#99;&#111;&#x6d;" data-bare-link="true">&#106;&#x6f;&#115;&#x68;&#117;&#x61;&#x40;&#x6f;&#112;&#x73;&#99;&#x6f;&#x64;&#101;&#46;&#99;&#x6f;&#109;</a>.
140
+ <p> This manual page was written by Joshua Timberman <a href="&#109;&#97;&#105;&#x6c;&#x74;&#x6f;&#x3a;&#x6a;&#x6f;&#115;&#x68;&#117;&#x61;&#x40;&#111;&#112;&#x73;&#x63;&#111;&#100;&#101;&#46;&#x63;&#111;&#109;" data-bare-link="true">&#x6a;&#111;&#x73;&#104;&#117;&#97;&#64;&#111;&#112;&#x73;&#99;&#111;&#100;&#x65;&#x2e;&#99;&#111;&#x6d;</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.0</li>
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="&#109;&#97;&#105;&#108;&#116;&#x6f;&#x3a;&#x61;&#x64;&#97;&#x6d;&#64;&#111;&#x70;&#115;&#x63;&#x6f;&#100;&#101;&#x2e;&#x63;&#x6f;&#109;" data-bare-link="true">&#97;&#100;&#97;&#x6d;&#x40;&#111;&#112;&#x73;&#x63;&#x6f;&#x64;&#x65;&#x2e;&#x63;&#x6f;&#109;</a> with many contributions from the community.</p>
108
+ <p> Chef was written by Adam Jacob <a data-bare-link="true" href="&#x6d;&#97;&#105;&#x6c;&#116;&#111;&#58;&#x61;&#x64;&#x61;&#x6d;&#64;&#x6f;&#112;&#115;&#99;&#x6f;&#x64;&#101;&#46;&#99;&#111;&#109;">&#97;&#100;&#x61;&#x6d;&#x40;&#111;&#x70;&#x73;&#x63;&#111;&#x64;&#x65;&#46;&#x63;&#x6f;&#x6d;</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="&#109;&#x61;&#x69;&#108;&#x74;&#x6f;&#58;&#106;&#111;&#x73;&#104;&#117;&#97;&#x40;&#111;&#112;&#115;&#99;&#111;&#x64;&#x65;&#46;&#99;&#111;&#x6d;" data-bare-link="true">&#106;&#x6f;&#115;&#x68;&#117;&#x61;&#x40;&#x6f;&#112;&#x73;&#99;&#x6f;&#x64;&#101;&#46;&#99;&#x6f;&#109;</a>.
112
+ <p> This manual page was written by Joshua Timberman <a data-bare-link="true" href="&#109;&#97;&#x69;&#x6c;&#x74;&#x6f;&#x3a;&#x6a;&#111;&#115;&#x68;&#x75;&#97;&#64;&#x6f;&#112;&#115;&#99;&#x6f;&#x64;&#101;&#x2e;&#99;&#111;&#x6d;">&#x6a;&#x6f;&#x73;&#x68;&#117;&#97;&#x40;&#111;&#x70;&#115;&#x63;&#x6f;&#100;&#x65;&#x2e;&#99;&#111;&#109;</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" data-bare-link="true">http://wiki.opscode.com/display/chef/Home</a></p>
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.0</li>
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="&#109;&#x61;&#105;&#x6c;&#x74;&#x6f;&#58;&#x61;&#100;&#97;&#109;&#64;&#x6f;&#112;&#x73;&#99;&#x6f;&#x64;&#101;&#x2e;&#99;&#x6f;&#109;" data-bare-link="true">&#97;&#100;&#x61;&#x6d;&#x40;&#x6f;&#x70;&#x73;&#x63;&#x6f;&#x64;&#x65;&#46;&#99;&#x6f;&#x6d;</a> with many contributions from the community.</p>
117
+ <p> Chef was written by Adam Jacob <a href="&#109;&#x61;&#x69;&#x6c;&#x74;&#x6f;&#x3a;&#x61;&#100;&#97;&#x6d;&#64;&#111;&#x70;&#115;&#x63;&#111;&#x64;&#x65;&#46;&#x63;&#111;&#x6d;" data-bare-link="true">&#97;&#x64;&#x61;&#x6d;&#x40;&#x6f;&#x70;&#x73;&#x63;&#x6f;&#100;&#101;&#46;&#x63;&#x6f;&#109;</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="&#x6d;&#97;&#x69;&#x6c;&#x74;&#x6f;&#58;&#100;&#x61;&#x6e;&#64;&#111;&#112;&#x73;&#99;&#111;&#x64;&#x65;&#x2e;&#x63;&#x6f;&#109;" data-bare-link="true">&#100;&#97;&#x6e;&#x40;&#x6f;&#x70;&#x73;&#x63;&#111;&#100;&#x65;&#46;&#x63;&#111;&#x6d;</a>.
121
+ <p> This manual page was written by Daniel DeLeo <a href="&#x6d;&#x61;&#x69;&#x6c;&#x74;&#111;&#x3a;&#100;&#97;&#110;&#x40;&#111;&#x70;&#x73;&#x63;&#x6f;&#100;&#101;&#46;&#x63;&#x6f;&#x6d;" data-bare-link="true">&#100;&#97;&#110;&#64;&#111;&#x70;&#x73;&#x63;&#x6f;&#100;&#101;&#46;&#x63;&#x6f;&#109;</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.0</li>
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/" data-bare-link="true">http://wiki.opscode.com/display/chef/Home/</a></p>
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/" data-bare-link="true">http://json.org/</a></p>
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/" data-bare-link="true">http://lucene.apache.org/solr/</a></p>
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/" data-bare-link="true">http://git-scm.com/</a></p>
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" data-bare-link="true">http://rtomayko.github.com/ronn/ronn.1.html</a></p>
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="&#109;&#x61;&#105;&#x6c;&#x74;&#x6f;&#58;&#x61;&#100;&#97;&#109;&#64;&#x6f;&#112;&#x73;&#99;&#x6f;&#x64;&#101;&#x2e;&#99;&#x6f;&#109;" data-bare-link="true">&#97;&#100;&#x61;&#x6d;&#x40;&#x6f;&#x70;&#x73;&#x63;&#x6f;&#x64;&#x65;&#46;&#99;&#x6f;&#x6d;</a> of Opscode
290
- (<a href="http://www.opscode.com" data-bare-link="true">http://www.opscode.com</a>), with contributions from the community.</p>
289
+ <p> Chef was written by Adam Jacob <a data-bare-link="true" href="&#x6d;&#x61;&#x69;&#108;&#x74;&#x6f;&#x3a;&#x61;&#x64;&#x61;&#109;&#64;&#x6f;&#112;&#x73;&#x63;&#x6f;&#x64;&#x65;&#46;&#x63;&#111;&#x6d;">&#97;&#100;&#97;&#x6d;&#x40;&#x6f;&#x70;&#x73;&#x63;&#x6f;&#100;&#x65;&#46;&#x63;&#111;&#x6d;</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="&#x6d;&#97;&#x69;&#x6c;&#x74;&#x6f;&#58;&#106;&#x6f;&#x73;&#104;&#117;&#97;&#x40;&#111;&#112;&#x73;&#x63;&#x6f;&#x64;&#x65;&#46;&#99;&#111;&#x6d;" data-bare-link="true">&#x6a;&#x6f;&#x73;&#x68;&#x75;&#97;&#64;&#x6f;&#112;&#x73;&#99;&#x6f;&#100;&#101;&#46;&#x63;&#111;&#x6d;</a>.</p>
294
+ <p> This manual page was written by Joshua Timberman <a data-bare-link="true" href="&#109;&#x61;&#x69;&#108;&#116;&#x6f;&#58;&#106;&#x6f;&#x73;&#x68;&#x75;&#97;&#x40;&#111;&#112;&#x73;&#x63;&#111;&#100;&#101;&#x2e;&#99;&#x6f;&#109;">&#106;&#111;&#115;&#104;&#117;&#97;&#64;&#x6f;&#x70;&#x73;&#99;&#x6f;&#x64;&#101;&#46;&#99;&#x6f;&#x6d;</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" data-bare-link="true">http://www.apache.org/licenses/LICENSE-2.0.html</a>
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" data-bare-link="true">http://wiki.opscode.com/display/chef/Home</a></p>
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.0</li>
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.0" "Chef Manual"
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.0" "Chef Manual"
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.0" "Chef Manual"
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.0" "Chef Manual"
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.0" "Chef Manual"
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.0" "Chef Manual"
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.0" "Chef Manual"
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.0" "Chef Manual"
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.0" "Chef Manual"
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.0" "Chef Manual"
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.0" "Chef Manual"
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.0" "Chef Manual"
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.0" "Chef Manual"
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.0" "Chef Manual"
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.0" "Chef Manual"
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.0" "Chef Manual"
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.0" "Chef Manual"
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.0" "Chef Manual"
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.0" "Chef Manual"
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.0" "Chef Manual"
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.0" "Chef Manual"
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.0" "Chef Manual"
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.0" "Chef Manual"
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.0" "Chef Manual"
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
@@ -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 Client"
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 chef-webui)"
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 webui.pem)"
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
- client_create = Chef::Knife::ClientCreate.new
97
- client_create.name_args = [ new_client_name ]
98
- client_create.config[:admin] = true
99
- client_create.config[:file] = new_client_key
100
- client_create.config[:yes] = true
101
- client_create.config[:disable_editing] = true
102
- client_create.run
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 clientname for the new client: ", :default => Etc.getlogin)
136
- @admin_client_name = config[:admin_client_name] || ask_question("Please enter the existing admin clientname: ", :default => 'chef-webui')
137
- @admin_client_key = config[:admin_client_key] || ask_question("Please enter the location of the existing admin client's private key: ", :default => '/etc/chef/webui.pem')
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)