chef 11.8.0.rc.1 → 11.8.0.rc.4
Sign up to get free protection for your applications and to get access to all the features.
- 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 +3 -3
- 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 +3 -3
- data/distro/common/html/knife-configure.1.html +3 -3
- data/distro/common/html/knife-cookbook-site.1.html +3 -3
- data/distro/common/html/knife-cookbook.1.html +3 -3
- 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 +3 -3
- data/distro/common/html/knife-index.1.html +3 -3
- data/distro/common/html/knife-node.1.html +3 -3
- data/distro/common/html/knife-role.1.html +3 -3
- data/distro/common/html/knife-search.1.html +3 -3
- data/distro/common/html/knife-ssh.1.html +3 -3
- data/distro/common/html/knife-status.1.html +3 -3
- data/distro/common/html/knife-tag.1.html +3 -3
- data/distro/common/html/knife.1.html +3 -3
- data/distro/common/man/man1/knife-diff.1 +3 -0
- data/distro/common/man/man1/knife-list.1 +3 -0
- data/distro/common/man/man1/knife-upload.1 +6 -6
- data/distro/common/man/man1/knife-xargs.1 +3 -3
- data/distro/common/man/man8/chef-solo.8 +6 -6
- data/lib/chef/application/solo.rb +2 -2
- data/lib/chef/application/windows_service.rb +23 -7
- data/lib/chef/client.rb +2 -2
- data/lib/chef/config_fetcher.rb +1 -1
- data/lib/chef/http/basic_client.rb +4 -0
- data/lib/chef/http/json_output.rb +1 -1
- data/lib/chef/version.rb +1 -1
- data/lib/chef/win32/mutex.rb +50 -27
- data/spec/integration/knife/raw_spec.rb +2 -2
- data/spec/integration/solo/solo_spec.rb +21 -3
- data/spec/unit/application/solo_spec.rb +1 -1
- metadata +18 -2
@@ -124,9 +124,9 @@ wiki, http://wiki.opscode.com/display/chef/Home.</p>
|
|
124
124
|
|
125
125
|
<h2 id="AUTHOR">AUTHOR</h2>
|
126
126
|
|
127
|
-
<p>Chef was written by Adam Jacob <a href="mailt&#
|
127
|
+
<p>Chef was written by Adam Jacob <a href="mailto:adam@ospcode.com" data-bare-link="true">adam@ospcode.com</a> of Opscode
|
128
128
|
(http://www.opscode.com), with contributions from the community. This
|
129
|
-
manual page was written by Joshua Timberman <a href="ma&#
|
129
|
+
manual page was written by Joshua Timberman <a href="mailto:joshua@opscode.com" data-bare-link="true">joshua@opscode.com</a> with
|
130
130
|
help2man. Permission is granted to copy, distribute and / or modify
|
131
131
|
this document under the terms of the Apache 2.0 License.</p>
|
132
132
|
|
@@ -135,7 +135,7 @@ found in /usr/share/common-licenses/Apache-2.0.</p>
|
|
135
135
|
|
136
136
|
|
137
137
|
<ol class='man-decor man-foot man foot'>
|
138
|
-
<li class='tl'>Chef 11.8.0.rc.
|
138
|
+
<li class='tl'>Chef 11.8.0.rc.4</li>
|
139
139
|
<li class='tc'>October 2013</li>
|
140
140
|
<li class='tr'>chef-client(8)</li>
|
141
141
|
</ol>
|
@@ -143,9 +143,9 @@ wiki, http://wiki.opscode.com/display/chef/Home.</p>
|
|
143
143
|
|
144
144
|
<h2 id="AUTHOR">AUTHOR</h2>
|
145
145
|
|
146
|
-
<p>Chef was written by Adam Jacob <a href="&#
|
146
|
+
<p>Chef was written by Adam Jacob <a href="mailto:adam@ospcode.com" data-bare-link="true">adam@ospcode.com</a> of Opscode
|
147
147
|
(http://www.opscode.com), with contributions from the community. This
|
148
|
-
manual page was created by Nuo Yan <a href="ma&#
|
148
|
+
manual page was created by Nuo Yan <a href="mailto:nuo@opscode.com" data-bare-link="true">nuo@opscode.com</a>. Permission is
|
149
149
|
granted to copy, distribute and / or modify this document under the
|
150
150
|
terms of the Apache 2.0 License.</p>
|
151
151
|
|
@@ -154,7 +154,7 @@ found in /usr/share/common-licenses/Apache-2.0.</p>
|
|
154
154
|
|
155
155
|
|
156
156
|
<ol class='man-decor man-foot man foot'>
|
157
|
-
<li class='tl'>Chef 11.8.0.rc.
|
157
|
+
<li class='tl'>Chef 11.8.0.rc.4</li>
|
158
158
|
<li class='tc'>October 2013</li>
|
159
159
|
<li class='tr'>chef-expander(8)</li>
|
160
160
|
</ol>
|
@@ -125,9 +125,9 @@ wiki, http://wiki.opscode.com/display/chef/Home.</p>
|
|
125
125
|
|
126
126
|
<h2 id="AUTHOR">AUTHOR</h2>
|
127
127
|
|
128
|
-
<p>Chef was written by Adam Jacob <a href="&#
|
128
|
+
<p>Chef was written by Adam Jacob <a href="mailto:adam@ospcode.com" data-bare-link="true">adam@ospcode.com</a> of Opscode
|
129
129
|
(http://www.opscode.com), with contributions from the community. This
|
130
|
-
manual page was created by Nuo Yan <a href="&#
|
130
|
+
manual page was created by Nuo Yan <a href="mailto:nuo@opscode.com" data-bare-link="true">nuo@opscode.com</a>. Permission is
|
131
131
|
granted to copy, distribute and / or modify this document under the
|
132
132
|
terms of the Apache 2.0 License.</p>
|
133
133
|
|
@@ -136,7 +136,7 @@ found in /usr/share/common-licenses/Apache-2.0.</p>
|
|
136
136
|
|
137
137
|
|
138
138
|
<ol class='man-decor man-foot man foot'>
|
139
|
-
<li class='tl'>Chef 11.8.0.rc.
|
139
|
+
<li class='tl'>Chef 11.8.0.rc.4</li>
|
140
140
|
<li class='tc'>October 2013</li>
|
141
141
|
<li class='tr'>chef-expanderctl(8)</li>
|
142
142
|
</ol>
|
@@ -163,9 +163,9 @@ is located on the Chef wiki, http://wiki.opscode.com/display/chef/Home.</p>
|
|
163
163
|
|
164
164
|
<h2 id="AUTHOR">AUTHOR</h2>
|
165
165
|
|
166
|
-
<p>Chef was written by Adam Jacob <a href="m&#
|
166
|
+
<p>Chef was written by Adam Jacob <a href="mailto:adam@ospcode.com" data-bare-link="true">adam@ospcode.com</a> of Opscode
|
167
167
|
(http://www.opscode.com), with contributions from the community. This
|
168
|
-
manual page was written by Joshua Timberman <a href="&#
|
168
|
+
manual page was written by Joshua Timberman <a href="mailto:joshua@opscode.com" data-bare-link="true">joshua@opscode.com</a> with
|
169
169
|
help2man for the Debian project (but may be used by others). Permission
|
170
170
|
is granted to copy, distribute and / or modify this document under the
|
171
171
|
terms of the Apache 2.0 License.</p>
|
@@ -175,7 +175,7 @@ found in /usr/share/common-licenses/Apache-2.0.</p>
|
|
175
175
|
|
176
176
|
|
177
177
|
<ol class='man-decor man-foot man foot'>
|
178
|
-
<li class='tl'>Chef 11.8.0.rc.
|
178
|
+
<li class='tl'>Chef 11.8.0.rc.4</li>
|
179
179
|
<li class='tc'>October 2013</li>
|
180
180
|
<li class='tr'>chef-server-webui(8)</li>
|
181
181
|
</ol>
|
@@ -161,9 +161,9 @@ wiki, http://wiki.opscode.com/display/chef/Home.</p>
|
|
161
161
|
|
162
162
|
<h2 id="AUTHOR">AUTHOR</h2>
|
163
163
|
|
164
|
-
<p>Chef was written by Adam Jacob <a href="&#
|
164
|
+
<p>Chef was written by Adam Jacob <a href="mailto:adam@ospcode.com" data-bare-link="true">adam@ospcode.com</a> of Opscode
|
165
165
|
(http://www.opscode.com), with contributions from the community. This
|
166
|
-
manual page was written by Joshua Timberman <a href="&#
|
166
|
+
manual page was written by Joshua Timberman <a href="mailto:joshua@opscode.com" data-bare-link="true">joshua@opscode.com</a> with
|
167
167
|
help2man. Permission is granted to copy, distribute and / or modify
|
168
168
|
this document under the terms of the Apache 2.0 License.</p>
|
169
169
|
|
@@ -172,7 +172,7 @@ found in /usr/share/common-licenses/Apache-2.0.</p>
|
|
172
172
|
|
173
173
|
|
174
174
|
<ol class='man-decor man-foot man foot'>
|
175
|
-
<li class='tl'>Chef 11.8.0.rc.
|
175
|
+
<li class='tl'>Chef 11.8.0.rc.4</li>
|
176
176
|
<li class='tc'>October 2013</li>
|
177
177
|
<li class='tr'>chef-server(8)</li>
|
178
178
|
</ol>
|
@@ -260,13 +260,13 @@ libraries.</p>
|
|
260
260
|
|
261
261
|
<h2 id="AUTHOR">AUTHOR</h2>
|
262
262
|
|
263
|
-
<p> Chef was written by Adam Jacob <a href="ma&#
|
263
|
+
<p> Chef was written by Adam Jacob <a href="mailto:adam@opscode.com" data-bare-link="true">adam@opscode.com</a> with many
|
264
264
|
contributions from the community. chef-shell was written by Daniel
|
265
265
|
DeLeo.</p>
|
266
266
|
|
267
267
|
<h2 id="DOCUMENTATION">DOCUMENTATION</h2>
|
268
268
|
|
269
|
-
<p> This manual page was written by Daniel DeLeo <a href="ma&#
|
269
|
+
<p> This manual page was written by Daniel DeLeo <a href="mailto:dan@opscode.com" data-bare-link="true">dan@opscode.com</a>.
|
270
270
|
Permission is granted to copy, distribute and / or modify this
|
271
271
|
document under the terms of the Apache 2.0 License.</p>
|
272
272
|
|
@@ -276,7 +276,7 @@ libraries.</p>
|
|
276
276
|
|
277
277
|
|
278
278
|
<ol class='man-decor man-foot man foot'>
|
279
|
-
<li class='tl'>Chef 11.8.0.rc.
|
279
|
+
<li class='tl'>Chef 11.8.0.rc.4</li>
|
280
280
|
<li class='tc'>October 2013</li>
|
281
281
|
<li class='tr'>chef-shell(1)</li>
|
282
282
|
</ol>
|
@@ -164,9 +164,9 @@ http://wiki.opscode.com/display/chef/Home.</p>
|
|
164
164
|
|
165
165
|
<h2 id="AUTHOR">AUTHOR</h2>
|
166
166
|
|
167
|
-
<p>Chef was written by Adam Jacob <a href="m&#
|
167
|
+
<p>Chef was written by Adam Jacob <a href="mailto:adam@ospcode.com" data-bare-link="true">adam@ospcode.com</a> of Opscode
|
168
168
|
(http://www.opscode.com), with contributions from the community. This
|
169
|
-
manual page was written by Joshua Timberman <a href="m&#
|
169
|
+
manual page was written by Joshua Timberman <a href="mailto:joshua@opscode.com" data-bare-link="true">joshua@opscode.com</a> with
|
170
170
|
help2man. Permission is granted to copy, distribute and / or modify
|
171
171
|
this document under the terms of the Apache 2.0 License.</p>
|
172
172
|
|
@@ -175,7 +175,7 @@ found in /usr/share/common-licenses/Apache-2.0.</p>
|
|
175
175
|
|
176
176
|
|
177
177
|
<ol class='man-decor man-foot man foot'>
|
178
|
-
<li class='tl'>Chef 11.8.0.rc.
|
178
|
+
<li class='tl'>Chef 11.8.0.rc.4</li>
|
179
179
|
<li class='tc'>October 2013</li>
|
180
180
|
<li class='tr'>chef-solo(8)</li>
|
181
181
|
</ol>
|
@@ -144,9 +144,9 @@ wiki, http://wiki.opscode.com/display/chef/Home.</p>
|
|
144
144
|
|
145
145
|
<h2 id="AUTHOR">AUTHOR</h2>
|
146
146
|
|
147
|
-
<p>Chef was written by Adam Jacob <a href="m&#
|
147
|
+
<p>Chef was written by Adam Jacob <a href="mailto:adam@ospcode.com" data-bare-link="true">adam@ospcode.com</a> of Opscode
|
148
148
|
(http://www.opscode.com), with contributions from the community. This
|
149
|
-
manual page was written by Joshua Timberman <a href="&#
|
149
|
+
manual page was written by Joshua Timberman <a href="mailto:joshua@opscode.com" data-bare-link="true">joshua@opscode.com</a> with
|
150
150
|
help2man. Permission is granted to copy, distribute and / or modify
|
151
151
|
this document under the terms of the Apache 2.0 License.</p>
|
152
152
|
|
@@ -155,7 +155,7 @@ found in /usr/share/common-licenses/Apache-2.0.</p>
|
|
155
155
|
|
156
156
|
|
157
157
|
<ol class='man-decor man-foot man foot'>
|
158
|
-
<li class='tl'>Chef 11.8.0.rc.
|
158
|
+
<li class='tl'>Chef 11.8.0.rc.4</li>
|
159
159
|
<li class='tc'>October 2013</li>
|
160
160
|
<li class='tr'>chef-solr(8)</li>
|
161
161
|
</ol>
|
@@ -218,11 +218,11 @@ to other users via the process list using tools such as <span class="man-ref">ps
|
|
218
218
|
|
219
219
|
<h2 id="AUTHOR">AUTHOR</h2>
|
220
220
|
|
221
|
-
<p> Chef was written by Adam Jacob <a href="m&#
|
221
|
+
<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>
|
222
222
|
|
223
223
|
<h2 id="DOCUMENTATION">DOCUMENTATION</h2>
|
224
224
|
|
225
|
-
<p> This manual page was written by Joshua Timberman <a href="m&#
|
225
|
+
<p> This manual page was written by Joshua Timberman <a href="mailto:joshua@opscode.com" data-bare-link="true">joshua@opscode.com</a>.
|
226
226
|
Permission is granted to copy, distribute and / or modify this document under the terms of the Apache 2.0 License.</p>
|
227
227
|
|
228
228
|
<h2 id="CHEF">CHEF</h2>
|
@@ -231,7 +231,7 @@ to other users via the process list using tools such as <span class="man-ref">ps
|
|
231
231
|
|
232
232
|
|
233
233
|
<ol class='man-decor man-foot man foot'>
|
234
|
-
<li class='tl'>Chef 11.8.0.rc.
|
234
|
+
<li class='tl'>Chef 11.8.0.rc.4</li>
|
235
235
|
<li class='tc'>October 2013</li>
|
236
236
|
<li class='tr'>knife-bootstrap(1)</li>
|
237
237
|
</ol>
|
@@ -196,11 +196,11 @@ setting up a host for management with Chef.</p>
|
|
196
196
|
|
197
197
|
<h2 id="AUTHOR">AUTHOR</h2>
|
198
198
|
|
199
|
-
<p> Chef was written by Adam Jacob <a href="m&#
|
199
|
+
<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>
|
200
200
|
|
201
201
|
<h2 id="DOCUMENTATION">DOCUMENTATION</h2>
|
202
202
|
|
203
|
-
<p> This manual page was written by Joshua Timberman <a href="m&#
|
203
|
+
<p> This manual page was written by Joshua Timberman <a href="mailto:joshua@opscode.com" data-bare-link="true">joshua@opscode.com</a>.
|
204
204
|
Permission is granted to copy, distribute and / or modify this document under the terms of the Apache 2.0 License.</p>
|
205
205
|
|
206
206
|
<h2 id="CHEF">CHEF</h2>
|
@@ -209,7 +209,7 @@ setting up a host for management with Chef.</p>
|
|
209
209
|
|
210
210
|
|
211
211
|
<ol class='man-decor man-foot man foot'>
|
212
|
-
<li class='tl'>Chef 11.8.0.rc.
|
212
|
+
<li class='tl'>Chef 11.8.0.rc.4</li>
|
213
213
|
<li class='tc'>October 2013</li>
|
214
214
|
<li class='tr'>knife-client(1)</li>
|
215
215
|
</ol>
|
@@ -147,11 +147,11 @@ may need to modify that setting after copying to a remote host.</p></li>
|
|
147
147
|
|
148
148
|
<h2 id="AUTHOR">AUTHOR</h2>
|
149
149
|
|
150
|
-
<p> Chef was written by Adam Jacob <a href="&#
|
150
|
+
<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>
|
151
151
|
|
152
152
|
<h2 id="DOCUMENTATION">DOCUMENTATION</h2>
|
153
153
|
|
154
|
-
<p> This manual page was written by Joshua Timberman <a href="&#
|
154
|
+
<p> This manual page was written by Joshua Timberman <a href="mailto:joshua@opscode.com" data-bare-link="true">joshua@opscode.com</a>.
|
155
155
|
Permission is granted to copy, distribute and / or modify this document under the terms of the Apache 2.0 License.</p>
|
156
156
|
|
157
157
|
<h2 id="CHEF">CHEF</h2>
|
@@ -160,7 +160,7 @@ may need to modify that setting after copying to a remote host.</p></li>
|
|
160
160
|
|
161
161
|
|
162
162
|
<ol class='man-decor man-foot man foot'>
|
163
|
-
<li class='tl'>Chef 11.8.0.rc.
|
163
|
+
<li class='tl'>Chef 11.8.0.rc.4</li>
|
164
164
|
<li class='tc'>October 2013</li>
|
165
165
|
<li class='tr'>knife-configure(1)</li>
|
166
166
|
</ol>
|
@@ -218,11 +218,11 @@ configuration file.</p>
|
|
218
218
|
|
219
219
|
<h2 id="AUTHOR">AUTHOR</h2>
|
220
220
|
|
221
|
-
<p> Chef was written by Adam Jacob <a href="ma&#
|
221
|
+
<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>
|
222
222
|
|
223
223
|
<h2 id="DOCUMENTATION">DOCUMENTATION</h2>
|
224
224
|
|
225
|
-
<p> This manual page was written by Joshua Timberman <a href="mail&#
|
225
|
+
<p> This manual page was written by Joshua Timberman <a href="mailto:joshua@opscode.com" data-bare-link="true">joshua@opscode.com</a>.
|
226
226
|
Permission is granted to copy, distribute and / or modify this document under the terms of the Apache 2.0 License.</p>
|
227
227
|
|
228
228
|
<h2 id="CHEF">CHEF</h2>
|
@@ -231,7 +231,7 @@ configuration file.</p>
|
|
231
231
|
|
232
232
|
|
233
233
|
<ol class='man-decor man-foot man foot'>
|
234
|
-
<li class='tl'>Chef 11.8.0.rc.
|
234
|
+
<li class='tl'>Chef 11.8.0.rc.4</li>
|
235
235
|
<li class='tc'>October 2013</li>
|
236
236
|
<li class='tr'>knife-cookbook-site(1)</li>
|
237
237
|
</ol>
|
@@ -358,11 +358,11 @@ cookbook.</p>
|
|
358
358
|
|
359
359
|
<h2 id="AUTHOR">AUTHOR</h2>
|
360
360
|
|
361
|
-
<p> Chef was written by Adam Jacob <a href="mailt&#
|
361
|
+
<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>
|
362
362
|
|
363
363
|
<h2 id="DOCUMENTATION">DOCUMENTATION</h2>
|
364
364
|
|
365
|
-
<p> This manual page was written by Joshua Timberman <a href="m&#
|
365
|
+
<p> This manual page was written by Joshua Timberman <a href="mailto:joshua@opscode.com" data-bare-link="true">joshua@opscode.com</a>.
|
366
366
|
Permission is granted to copy, distribute and / or modify this document under the terms of the Apache 2.0 License.</p>
|
367
367
|
|
368
368
|
<h2 id="CHEF">CHEF</h2>
|
@@ -371,7 +371,7 @@ cookbook.</p>
|
|
371
371
|
|
372
372
|
|
373
373
|
<ol class='man-decor man-foot man foot'>
|
374
|
-
<li class='tl'>Chef 11.8.0.rc.
|
374
|
+
<li class='tl'>Chef 11.8.0.rc.4</li>
|
375
375
|
<li class='tc'>October 2013</li>
|
376
376
|
<li class='tr'>knife-cookbook(1)</li>
|
377
377
|
</ol>
|
@@ -212,11 +212,11 @@ encryption keys.</p>
|
|
212
212
|
|
213
213
|
<h2 id="AUTHOR">AUTHOR</h2>
|
214
214
|
|
215
|
-
<p> Chef was written by Adam Jacob <a href="mailt&#
|
215
|
+
<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>
|
216
216
|
|
217
217
|
<h2 id="DOCUMENTATION">DOCUMENTATION</h2>
|
218
218
|
|
219
|
-
<p> This manual page was written by Joshua Timberman <a href="m&#
|
219
|
+
<p> This manual page was written by Joshua Timberman <a href="mailto:joshua@opscode.com" data-bare-link="true">joshua@opscode.com</a>.
|
220
220
|
Permission is granted to copy, distribute and / or modify this document under the terms of the Apache 2.0 License.</p>
|
221
221
|
|
222
222
|
<h2 id="CHEF">CHEF</h2>
|
@@ -225,7 +225,7 @@ encryption keys.</p>
|
|
225
225
|
|
226
226
|
|
227
227
|
<ol class='man-decor man-foot man foot'>
|
228
|
-
<li class='tl'>Chef 11.8.0.rc.
|
228
|
+
<li class='tl'>Chef 11.8.0.rc.4</li>
|
229
229
|
<li class='tc'>October 2013</li>
|
230
230
|
<li class='tr'>knife-data-bag(1)</li>
|
231
231
|
</ol>
|
@@ -242,11 +242,11 @@ override_attributes "aws_s3_bucket" => "production"
|
|
242
242
|
|
243
243
|
<h2 id="AUTHOR">AUTHOR</h2>
|
244
244
|
|
245
|
-
<p> Chef was written by Adam Jacob <a href="ma&#
|
245
|
+
<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>
|
246
246
|
|
247
247
|
<h2 id="DOCUMENTATION">DOCUMENTATION</h2>
|
248
248
|
|
249
|
-
<p> This manual page was written by Daniel DeLeo <a href="&#
|
249
|
+
<p> This manual page was written by Daniel DeLeo <a href="mailto:dan@opscode.com" data-bare-link="true">dan@opscode.com</a>.
|
250
250
|
Permission is granted to copy, distribute and / or modify this document under the terms of the Apache 2.0 License.</p>
|
251
251
|
|
252
252
|
<h2 id="CHEF">CHEF</h2>
|
@@ -255,7 +255,7 @@ override_attributes "aws_s3_bucket" => "production"
|
|
255
255
|
|
256
256
|
|
257
257
|
<ol class='man-decor man-foot man foot'>
|
258
|
-
<li class='tl'>Chef 11.8.0.rc.
|
258
|
+
<li class='tl'>Chef 11.8.0.rc.4</li>
|
259
259
|
<li class='tc'>October 2013</li>
|
260
260
|
<li class='tr'>knife-environment(1)</li>
|
261
261
|
</ol>
|
@@ -111,11 +111,11 @@ description of the commands available.</p>
|
|
111
111
|
|
112
112
|
<h2 id="AUTHOR">AUTHOR</h2>
|
113
113
|
|
114
|
-
<p> Chef was written by Adam Jacob <a href="&#
|
114
|
+
<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>
|
115
115
|
|
116
116
|
<h2 id="DOCUMENTATION">DOCUMENTATION</h2>
|
117
117
|
|
118
|
-
<p> This manual page was written by Joshua Timberman <a href="&#
|
118
|
+
<p> This manual page was written by Joshua Timberman <a href="mailto:joshua@opscode.com" data-bare-link="true">joshua@opscode.com</a>.
|
119
119
|
Permission is granted to copy, distribute and / or modify this document under the terms of the Apache 2.0 License.</p>
|
120
120
|
|
121
121
|
<h2 id="CHEF">CHEF</h2>
|
@@ -124,7 +124,7 @@ description of the commands available.</p>
|
|
124
124
|
|
125
125
|
|
126
126
|
<ol class='man-decor man-foot man foot'>
|
127
|
-
<li class='tl'>Chef 11.8.0.rc.
|
127
|
+
<li class='tl'>Chef 11.8.0.rc.4</li>
|
128
128
|
<li class='tc'>October 2013</li>
|
129
129
|
<li class='tr'>knife-exec(1)</li>
|
130
130
|
</ol>
|
@@ -102,11 +102,11 @@ time for all objects to be indexed and available for search.</p>
|
|
102
102
|
|
103
103
|
<h2 id="AUTHOR">AUTHOR</h2>
|
104
104
|
|
105
|
-
<p> Chef was written by Adam Jacob <a href="m&#
|
105
|
+
<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>
|
106
106
|
|
107
107
|
<h2 id="DOCUMENTATION">DOCUMENTATION</h2>
|
108
108
|
|
109
|
-
<p> This manual page was written by Joshua Timberman <a href="ma&#
|
109
|
+
<p> This manual page was written by Joshua Timberman <a href="mailto:joshua@opscode.com" data-bare-link="true">joshua@opscode.com</a>.
|
110
110
|
Permission is granted to copy, distribute and / or modify this document under the terms of the Apache 2.0 License.</p>
|
111
111
|
|
112
112
|
<h2 id="CHEF">CHEF</h2>
|
@@ -115,7 +115,7 @@ time for all objects to be indexed and available for search.</p>
|
|
115
115
|
|
116
116
|
|
117
117
|
<ol class='man-decor man-foot man foot'>
|
118
|
-
<li class='tl'>Chef 11.8.0.rc.
|
118
|
+
<li class='tl'>Chef 11.8.0.rc.4</li>
|
119
119
|
<li class='tc'>October 2013</li>
|
120
120
|
<li class='tr'>knife-index(1)</li>
|
121
121
|
</ol>
|
@@ -227,11 +227,11 @@ run list, the correct syntax is "role[ROLE_NAME]"</p>
|
|
227
227
|
|
228
228
|
<h2 id="AUTHOR">AUTHOR</h2>
|
229
229
|
|
230
|
-
<p> Chef was written by Adam Jacob <a href="m&#
|
230
|
+
<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>
|
231
231
|
|
232
232
|
<h2 id="DOCUMENTATION">DOCUMENTATION</h2>
|
233
233
|
|
234
|
-
<p> This manual page was written by Joshua Timberman <a href="ma&#
|
234
|
+
<p> This manual page was written by Joshua Timberman <a href="mailto:joshua@opscode.com" data-bare-link="true">joshua@opscode.com</a>.
|
235
235
|
Permission is granted to copy, distribute and / or modify this document under the terms of the Apache 2.0 License.</p>
|
236
236
|
|
237
237
|
<h2 id="CHEF">CHEF</h2>
|
@@ -240,7 +240,7 @@ run list, the correct syntax is "role[ROLE_NAME]"</p>
|
|
240
240
|
|
241
241
|
|
242
242
|
<ol class='man-decor man-foot man foot'>
|
243
|
-
<li class='tl'>Chef 11.8.0.rc.
|
243
|
+
<li class='tl'>Chef 11.8.0.rc.4</li>
|
244
244
|
<li class='tc'>October 2013</li>
|
245
245
|
<li class='tr'>knife-node(1)</li>
|
246
246
|
</ol>
|
@@ -177,11 +177,11 @@ run_list.</p>
|
|
177
177
|
|
178
178
|
<h2 id="AUTHOR">AUTHOR</h2>
|
179
179
|
|
180
|
-
<p> Chef was written by Adam Jacob <a href="mai&#
|
180
|
+
<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>
|
181
181
|
|
182
182
|
<h2 id="DOCUMENTATION">DOCUMENTATION</h2>
|
183
183
|
|
184
|
-
<p> This manual page was written by Joshua Timberman <a href="&#
|
184
|
+
<p> This manual page was written by Joshua Timberman <a href="mailto:joshua@opscode.com" data-bare-link="true">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>
|
@@ -190,7 +190,7 @@ run_list.</p>
|
|
190
190
|
|
191
191
|
|
192
192
|
<ol class='man-decor man-foot man foot'>
|
193
|
-
<li class='tl'>Chef 11.8.0.rc.
|
193
|
+
<li class='tl'>Chef 11.8.0.rc.4</li>
|
194
194
|
<li class='tc'>October 2013</li>
|
195
195
|
<li class='tr'>knife-role(1)</li>
|
196
196
|
</ol>
|
@@ -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="mail&#
|
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,7 +278,7 @@ www.example.com:</p>
|
|
278
278
|
|
279
279
|
|
280
280
|
<ol class='man-decor man-foot man foot'>
|
281
|
-
<li class='tl'>Chef 11.8.0.rc.
|
281
|
+
<li class='tl'>Chef 11.8.0.rc.4</li>
|
282
282
|
<li class='tc'>October 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="mailt&#
|
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="ma&#
|
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.8.0.rc.
|
149
|
+
<li class='tl'>Chef 11.8.0.rc.4</li>
|
150
150
|
<li class='tc'>October 2013</li>
|
151
151
|
<li class='tr'>knife-ssh(1)</li>
|
152
152
|
</ol>
|
@@ -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="ma&#
|
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,7 +118,7 @@ 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 11.8.0.rc.
|
121
|
+
<li class='tl'>Chef 11.8.0.rc.4</li>
|
122
122
|
<li class='tc'>October 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="&#
|
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="&#
|
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.8.0.rc.
|
130
|
+
<li class='tl'>Chef 11.8.0.rc.4</li>
|
131
131
|
<li class='tc'>October 2013</li>
|
132
132
|
<li class='tr'>knife-tag(1)</li>
|
133
133
|
</ol>
|
@@ -286,12 +286,12 @@ data editing entirely.</dd>
|
|
286
286
|
|
287
287
|
<h2 id="AUTHOR">AUTHOR</h2>
|
288
288
|
|
289
|
-
<p> Chef was written by Adam Jacob <a href="mailt&#
|
289
|
+
<p> Chef was written by Adam Jacob <a href="mailto:adam@opscode.com" data-bare-link="true">adam@opscode.com</a> of Opscode
|
290
290
|
(<a href="http://www.opscode.com" data-bare-link="true">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="ma&#
|
294
|
+
<p> This manual page was written by Joshua Timberman <a href="mailto:joshua@opscode.com" data-bare-link="true">joshua@opscode.com</a>.</p>
|
295
295
|
|
296
296
|
<h2 id="LICENSE">LICENSE</h2>
|
297
297
|
|
@@ -305,7 +305,7 @@ data editing entirely.</dd>
|
|
305
305
|
|
306
306
|
|
307
307
|
<ol class='man-decor man-foot man foot'>
|
308
|
-
<li class='tl'>Chef 11.8.0.rc.
|
308
|
+
<li class='tl'>Chef 11.8.0.rc.4</li>
|
309
309
|
<li class='tc'>October 2013</li>
|
310
310
|
<li class='tr'>knife(1)</li>
|
311
311
|
</ol>
|
@@ -111,6 +111,9 @@ This subcommand has the following options:
|
|
111
111
|
.B \fB\-\-chef\-repo\-path PATH\fP
|
112
112
|
The path to the chef\-repo. This setting will override the default path to the chef\-repo. Default: same as specified by \fBchef_repo_path\fP in config.rb.
|
113
113
|
.TP
|
114
|
+
.B \fB\-\-cookbook\-version VERSION\fP
|
115
|
+
The version of a cookbook to be downloaded.
|
116
|
+
.TP
|
114
117
|
.B \fB\-\-concurrency\fP
|
115
118
|
The number of allowed concurrent connections. Default: \fB10\fP.
|
116
119
|
.TP
|
@@ -108,6 +108,9 @@ $ knife list [PATTERN...] (options)
|
|
108
108
|
This subcommand has the following options:
|
109
109
|
.INDENT 0.0
|
110
110
|
.TP
|
111
|
+
.B \fB\-1\fP
|
112
|
+
Indicates that only one results column will be shown.
|
113
|
+
.TP
|
111
114
|
.B \fB\-\-chef\-repo\-path PATH\fP
|
112
115
|
The path to the chef\-repo. This setting will override the default path to the chef\-repo. Default: same as specified by \fBchef_repo_path\fP in config.rb.
|
113
116
|
.TP
|
@@ -114,18 +114,18 @@ The path to the chef\-repo. This setting will override the default path to the c
|
|
114
114
|
.B \fB\-\-concurrency\fP
|
115
115
|
The number of allowed concurrent connections. Default: \fB10\fP.
|
116
116
|
.TP
|
117
|
-
.B \fB\-\-[no\-]force\fP
|
118
|
-
Use \fB\-\-force\fP to upload roles, cookbooks, etc. even if the file in the directory is identical (by default, no \fBPOST\fP or \fBPUT\fP is performed unless an actual change would be made). Default: \fB\-\-no\-force\fP.
|
119
|
-
.TP
|
120
|
-
.B \fB\-n\fP, \fB\-\-dry\-run\fP
|
121
|
-
Indicates that no action is taken and that results are only printed out. Default: \fBfalse\fP.
|
122
|
-
.TP
|
123
117
|
.B \fB\-\-[no\-]diff\fP
|
124
118
|
Indicates that only new and modified files will be uploaded. Set to \fBfalse\fP to upload all files. Default: \fBtrue\fP.
|
125
119
|
.TP
|
120
|
+
.B \fB\-\-[no\-]force\fP
|
121
|
+
Use \fB\-\-force\fP to upload roles, cookbooks, etc. even if the file in the directory is identical (by default, no \fBPOST\fP or \fBPUT\fP is performed unless an actual change would be made). Default: \fB\-\-no\-force\fP.
|
122
|
+
.TP
|
126
123
|
.B \fB\-\-[no\-]freeze\fP
|
127
124
|
Indicates that a cookbook cannot be modified; any changes to this cookbook must be included as a new version. Only the \fB\-\-force\fP option can override this setting. Default: \fBfalse\fP.
|
128
125
|
.TP
|
126
|
+
.B \fB\-n\fP, \fB\-\-dry\-run\fP
|
127
|
+
Indicates that no action is taken and that results are only printed out. Default: \fBfalse\fP.
|
128
|
+
.TP
|
129
129
|
.B \fB\-\-[no\-]purge\fP
|
130
130
|
Use \fB\-\-purge\fP to delete roles, cookbooks, etc. from the server if their corresponding files do not exist in the chef\-repo. By default, such objects are left alone and NOT purged. Default: \fB\-\-no\-purge\fP.
|
131
131
|
.TP
|
@@ -108,6 +108,9 @@ $ knife xargs [PATTERN...] (options)
|
|
108
108
|
This subcommand has the following options:
|
109
109
|
.INDENT 0.0
|
110
110
|
.TP
|
111
|
+
.B \fB\-0\fP
|
112
|
+
Indicates that a \fBNULL\fP character (\fB\e0\fP) will be used as a separator, instead of white space. Default: \fBfalse\fP.
|
113
|
+
.TP
|
111
114
|
.B \fB\-\-chef\-repo\-path PATH\fP
|
112
115
|
The path to the chef\-repo. This setting will override the default path to the chef\-repo. Default: same as specified by \fBchef_repo_path\fP in config.rb.
|
113
116
|
.TP
|
@@ -132,9 +135,6 @@ The maximum number of arguments per command line. Default: \fBnil\fP.
|
|
132
135
|
.B \fB\-s LENGTH\fP, \fB\-\-max\-chars LENGTH\fP
|
133
136
|
The maximum size (in characters) for a command line. Default: \fBnil\fP.
|
134
137
|
.TP
|
135
|
-
.B \fB\-0\fP
|
136
|
-
Indicates that a \fBNULL\fP character (\fB\e0\fP) will be used as a separator, instead of white space. Default: \fBfalse\fP.
|
137
|
-
.TP
|
138
138
|
.B \fB\-p [PATTERN...]\fP, \fB\-\-pattern [PATTERN...]\fP
|
139
139
|
One (or more) patterns for a command line. If this option is not specified, a list of patterns may be expected on standard input. Default: \fBnil\fP.
|
140
140
|
.TP
|
@@ -67,11 +67,11 @@ The configuration file to use.
|
|
67
67
|
.B \fB\-d\fP, \fB\-\-daemonize\fP
|
68
68
|
Indicates that the executable will be run as a daemon. This option is only available on machines that run in UNIX or Linux environments. For machines that are running Microsoft Windows that require similar functionality, use the \fBchef\-client::service\fP recipe in the \fBchef\-client\fP cookbook: \fI\%http://community.opscode.com/cookbooks/chef-client\fP. This will install a chef\-client service under Microsoft Windows using the Windows Service Wrapper.
|
69
69
|
.TP
|
70
|
-
.B \fB\-f\fP, \fB\-\-fork\fP
|
71
|
-
Indicates that a chef\-client run will be contained in a secondary process with dedicated RAM. When the chef\-client run is complete the RAM will be returned to the master process. This option helps ensure that a chef\-client will use a steady amount of RAM over time because the master process will not run recipes. This option will also help prevent memory leaks (such as those that can be introduced by the code contained within a poorly designed cookbook).
|
70
|
+
.B \fB\-f\fP, \fB\-\-[no\-]fork\fP
|
71
|
+
Indicates that a chef\-client run will be contained in a secondary process with dedicated RAM. When the chef\-client run is complete the RAM will be returned to the master process. This option helps ensure that a chef\-client will use a steady amount of RAM over time because the master process will not run recipes. This option will also help prevent memory leaks (such as those that can be introduced by the code contained within a poorly designed cookbook). Use \fB\-\-no\-fork\fP to disable running the chef\-client in fork node. Default value: \fB\-\-fork\fP.
|
72
72
|
.TP
|
73
|
-
.B \fB\-F
|
74
|
-
The output format.
|
73
|
+
.B \fB\-F FORMAT\fP, \fB\-\-format FORMAT\fP
|
74
|
+
The output format: \fBsummary\fP (default), \fBtext\fP, \fBjson\fP, \fByaml\fP, and \fBpp\fP.
|
75
75
|
.TP
|
76
76
|
.B \fB\-\-force\-formatter\fP
|
77
77
|
Indicates that formatter output will be used instead of logger output.
|
@@ -98,7 +98,7 @@ The level of logging that will be stored in a log file: \fBdebug\fP, \fBinfo\fP,
|
|
98
98
|
The location in which log file output files will be saved. If this location is set to something other than \fBSTDOUT\fP, standard output logging will still be performed (otherwise there would be no output other than to a file). This is recommended when starting any executable as a daemon.
|
99
99
|
.TP
|
100
100
|
.B \fB\-\-[no\-]color\fP
|
101
|
-
|
101
|
+
Indicates that color will not be used in the output. Default setting: \fB\-\-color\fP.
|
102
102
|
.TP
|
103
103
|
.B \fB\-N NODE_NAME\fP, \fB\-\-node\-name NODE_NAME\fP
|
104
104
|
The name of the node.
|
@@ -119,7 +119,7 @@ The user that owns a process. This is required when starting any executable as a
|
|
119
119
|
The version of the chef\-client.
|
120
120
|
.TP
|
121
121
|
.B \fB\-W\fP, \fB\-\-why\-run\fP
|
122
|
-
Indicates that the executable will be run in
|
122
|
+
Indicates that the executable will be run in why\-run mode, which is a type of chef\-client run that does everything except modify the system. Use why\-run mode to understand why the chef\-client makes the decisions that it makes and to learn more about the current and proposed state of the system.
|
123
123
|
.UNINDENT
|
124
124
|
.SH EXAMPLES
|
125
125
|
.sp
|
@@ -165,7 +165,7 @@ class Chef::Application::Solo < Chef::Application
|
|
165
165
|
:long => '--environment ENVIRONMENT',
|
166
166
|
:description => 'Set the Chef Environment on the node'
|
167
167
|
|
168
|
-
attr_reader :
|
168
|
+
attr_reader :chef_client_json
|
169
169
|
|
170
170
|
def initialize
|
171
171
|
super
|
@@ -182,7 +182,7 @@ class Chef::Application::Solo < Chef::Application
|
|
182
182
|
|
183
183
|
if Chef::Config[:json_attribs]
|
184
184
|
config_fetcher = Chef::ConfigFetcher.new(Chef::Config[:json_attribs])
|
185
|
-
@
|
185
|
+
@chef_client_json = config_fetcher.fetch_json
|
186
186
|
end
|
187
187
|
|
188
188
|
if Chef::Config[:recipe_url]
|
@@ -105,6 +105,10 @@ class Chef
|
|
105
105
|
end
|
106
106
|
end
|
107
107
|
|
108
|
+
# Daemon class needs to have all the signal callbacks return
|
109
|
+
# before service_main returns.
|
110
|
+
Chef::Log.debug("Giving signal callbacks some time to exit...")
|
111
|
+
sleep 1
|
108
112
|
Chef::Log.debug("Exiting service...")
|
109
113
|
end
|
110
114
|
|
@@ -113,15 +117,27 @@ class Chef
|
|
113
117
|
################################################################################
|
114
118
|
|
115
119
|
def service_stop
|
120
|
+
run_warning_displayed = false
|
116
121
|
Chef::Log.info("STOP request from operating system.")
|
117
|
-
|
118
|
-
|
119
|
-
@service_action_mutex.
|
120
|
-
|
121
|
-
|
122
|
-
|
123
|
-
|
122
|
+
loop do
|
123
|
+
# See if a run is in flight
|
124
|
+
if @service_action_mutex.try_lock
|
125
|
+
# Run is not in flight. Wake up service_main to exit.
|
126
|
+
@service_signal.signal
|
127
|
+
@service_action_mutex.unlock
|
128
|
+
break
|
129
|
+
else
|
130
|
+
unless run_warning_displayed
|
131
|
+
Chef::Log.info("Currently a chef run is happening on this system.")
|
132
|
+
Chef::Log.info("Service will stop when run is completed.")
|
133
|
+
run_warning_displayed = true
|
134
|
+
end
|
135
|
+
|
136
|
+
Chef::Log.debug("Waiting for chef-client run...")
|
137
|
+
sleep 1
|
138
|
+
end
|
124
139
|
end
|
140
|
+
Chef::Log.info("Service is stopping....")
|
125
141
|
end
|
126
142
|
|
127
143
|
def service_pause
|
data/lib/chef/client.rb
CHANGED
data/lib/chef/config_fetcher.rb
CHANGED
@@ -9,7 +9,7 @@ class Chef
|
|
9
9
|
attr_reader :config_location
|
10
10
|
attr_reader :config_file_jail
|
11
11
|
|
12
|
-
def initialize(config_location, config_file_jail)
|
12
|
+
def initialize(config_location, config_file_jail=nil)
|
13
13
|
@config_location = config_location
|
14
14
|
@config_file_jail = config_file_jail
|
15
15
|
end
|
@@ -57,6 +57,10 @@ class Chef
|
|
57
57
|
def request(method, url, req_body, base_headers={})
|
58
58
|
http_request = HTTPRequest.new(method, url, req_body, base_headers).http_request
|
59
59
|
Chef::Log.debug("Initiating #{method} to #{url}")
|
60
|
+
Chef::Log.debug("---- HTTP Request Header Data: ----")
|
61
|
+
base_headers.each do |name, value|
|
62
|
+
Chef::Log.debug("#{name}: #{value}")
|
63
|
+
end
|
60
64
|
http_client.request(http_request) do |response|
|
61
65
|
yield response if block_given?
|
62
66
|
# http_client.request may not have the return signature we want, so
|
@@ -55,7 +55,7 @@ class Chef
|
|
55
55
|
end
|
56
56
|
[http_response, rest_request, return_value]
|
57
57
|
else
|
58
|
-
Chef::Log.
|
58
|
+
Chef::Log.debug("Expected JSON response, but got content-type '#{http_response['content-type']}'")
|
59
59
|
return [http_response, rest_request, http_response.body.to_s]
|
60
60
|
end
|
61
61
|
end
|
data/lib/chef/version.rb
CHANGED
data/lib/chef/win32/mutex.rb
CHANGED
@@ -22,25 +22,10 @@ class Chef
|
|
22
22
|
module ReservedNames::Win32
|
23
23
|
class Mutex
|
24
24
|
include Chef::ReservedNames::Win32::API::Synchronization
|
25
|
-
extend Chef::ReservedNames::Win32::API::Synchronization
|
26
25
|
|
27
26
|
def initialize(name)
|
28
27
|
@name = name
|
29
|
-
|
30
|
-
# given name.
|
31
|
-
|
32
|
-
# In the initial creation of the mutex initial_owner is set to
|
33
|
-
# false so that mutex will not be acquired until someone calls
|
34
|
-
# acquire.
|
35
|
-
# In order to call "*W" windows apis, strings needs to be
|
36
|
-
# encoded as wide strings.
|
37
|
-
@handle = CreateMutexW(nil, false, name.to_wstring)
|
38
|
-
|
39
|
-
# Fail early if we can't get a handle to the named mutex
|
40
|
-
if @handle == 0
|
41
|
-
Chef::Log.error("Failed to create system mutex with name'#{name}'")
|
42
|
-
Chef::ReservedNames::Win32::Error.raise!
|
43
|
-
end
|
28
|
+
create_system_mutex
|
44
29
|
end
|
45
30
|
|
46
31
|
attr_reader :handle
|
@@ -57,17 +42,27 @@ class Chef
|
|
57
42
|
#####################################################
|
58
43
|
# Attempts to grab the mutex and waits until it is acquired.
|
59
44
|
def wait
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
45
|
+
loop do
|
46
|
+
wait_result = WaitForSingleObject(handle, 1000)
|
47
|
+
case wait_result
|
48
|
+
when WAIT_TIMEOUT
|
49
|
+
# We are periodically waking up in order to give ruby a
|
50
|
+
# chance to process any signal it got while we were
|
51
|
+
# sleeping. This condition shouldn't contain any logic
|
52
|
+
# other than sleeping.
|
53
|
+
sleep 0.1
|
54
|
+
when WAIT_ABANDONED
|
55
|
+
# Previous owner of the mutex died before it can release the
|
56
|
+
# mutex. Log a warning and continue.
|
57
|
+
Chef::Log.debug "Existing owner of the mutex exited prematurely."
|
58
|
+
break
|
59
|
+
when WAIT_OBJECT_0
|
60
|
+
# Mutex is successfully acquired.
|
61
|
+
break
|
62
|
+
else
|
63
|
+
Chef::Log.error("Failed to acquire system mutex '#{name}'. Return code: #{wait_result}")
|
64
|
+
Chef::ReservedNames::Win32::Error.raise!
|
65
|
+
end
|
71
66
|
end
|
72
67
|
end
|
73
68
|
|
@@ -87,6 +82,34 @@ if the mutex is attempted to be acquired by other threads.")
|
|
87
82
|
Chef::ReservedNames::Win32::Error.raise!
|
88
83
|
end
|
89
84
|
end
|
85
|
+
|
86
|
+
private
|
87
|
+
|
88
|
+
def create_system_mutex
|
89
|
+
# First check if there exists a mutex in the system with the
|
90
|
+
# given name. We need only synchronize rights if a mutex is
|
91
|
+
# already created.
|
92
|
+
# InheritHandle is set to true so that subprocesses can
|
93
|
+
# inherit the ownership of the mutex.
|
94
|
+
@handle = OpenMutexW(SYNCHRONIZE, true, name.to_wstring)
|
95
|
+
|
96
|
+
if @handle == 0
|
97
|
+
# Mutext doesn't exist so create one.
|
98
|
+
# In the initial creation of the mutex initial_owner is set to
|
99
|
+
# false so that mutex will not be acquired until someone calls
|
100
|
+
# acquire.
|
101
|
+
# In order to call "*W" windows apis, strings needs to be
|
102
|
+
# encoded as wide strings.
|
103
|
+
@handle = CreateMutexW(nil, false, name.to_wstring)
|
104
|
+
|
105
|
+
# Looks like we can't create the mutex for some reason.
|
106
|
+
# Fail early.
|
107
|
+
if @handle == 0
|
108
|
+
Chef::Log.error("Failed to create system mutex with name'#{name}'")
|
109
|
+
Chef::ReservedNames::Win32::Error.raise!
|
110
|
+
end
|
111
|
+
end
|
112
|
+
end
|
90
113
|
end
|
91
114
|
end
|
92
115
|
end
|
@@ -214,13 +214,13 @@ EOM
|
|
214
214
|
end
|
215
215
|
|
216
216
|
it 'knife raw /blah returns the raw text' do
|
217
|
-
knife('raw /blah').should_succeed(<<EOM
|
217
|
+
knife('raw /blah').should_succeed(<<EOM)
|
218
218
|
{ "x": "y", "a": "b" }
|
219
219
|
EOM
|
220
220
|
end
|
221
221
|
|
222
222
|
it 'knife raw --no-pretty /blah returns the raw text' do
|
223
|
-
knife('raw --no-pretty /blah').should_succeed(<<EOM
|
223
|
+
knife('raw --no-pretty /blah').should_succeed(<<EOM)
|
224
224
|
{ "x": "y", "a": "b" }
|
225
225
|
EOM
|
226
226
|
end
|
@@ -9,19 +9,37 @@ describe "chef-solo" do
|
|
9
9
|
extend IntegrationSupport
|
10
10
|
include Chef::Mixin::ShellOut
|
11
11
|
|
12
|
-
|
12
|
+
let(:chef_dir) { File.join(File.dirname(__FILE__), "..", "..", "..") }
|
13
|
+
|
14
|
+
when_the_repository "has a cookbook with a basic recipe" do
|
13
15
|
file 'cookbooks/x/metadata.rb', 'version "1.0.0"'
|
14
|
-
file 'cookbooks/x/recipes/default.rb', ''
|
16
|
+
file 'cookbooks/x/recipes/default.rb', 'puts "ITWORKS"'
|
15
17
|
|
16
18
|
it "should complete with success" do
|
17
19
|
file 'config/solo.rb', <<EOM
|
18
20
|
cookbook_path "#{path_to('cookbooks')}"
|
19
21
|
file_cache_path "#{path_to('config/cache')}"
|
20
22
|
EOM
|
21
|
-
chef_dir = File.join(File.dirname(__FILE__), "..", "..", "..")
|
22
23
|
result = shell_out("ruby bin/chef-solo -c \"#{path_to('config/solo.rb')}\" -o 'x::default' -l debug", :cwd => chef_dir)
|
23
24
|
result.error!
|
25
|
+
result.stdout.should include("ITWORKS")
|
24
26
|
end
|
27
|
+
|
28
|
+
it "should evaluate its node.json file" do
|
29
|
+
file 'config/solo.rb', <<EOM
|
30
|
+
cookbook_path "#{path_to('cookbooks')}"
|
31
|
+
file_cache_path "#{path_to('config/cache')}"
|
32
|
+
EOM
|
33
|
+
|
34
|
+
file 'config/node.json',<<-E
|
35
|
+
{"run_list":["x::default"]}
|
36
|
+
E
|
37
|
+
|
38
|
+
result = shell_out("ruby bin/chef-solo -c \"#{path_to('config/solo.rb')}\" -j '#{path_to('config/node.json')}' -l debug", :cwd => chef_dir)
|
39
|
+
result.error!
|
40
|
+
result.stdout.should include("ITWORKS")
|
41
|
+
end
|
42
|
+
|
25
43
|
end
|
26
44
|
|
27
45
|
when_the_repository "has a cookbook with a recipe with sleep" do
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: chef
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 11.8.0.rc.
|
4
|
+
version: 11.8.0.rc.4
|
5
5
|
prerelease: 7
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2013-10-
|
12
|
+
date: 2013-10-29 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: mixlib-config
|
@@ -129,6 +129,22 @@ dependencies:
|
|
129
129
|
- - <
|
130
130
|
- !ruby/object:Gem::Version
|
131
131
|
version: 1.7.0
|
132
|
+
- !ruby/object:Gem::Dependency
|
133
|
+
name: mime-types
|
134
|
+
requirement: !ruby/object:Gem::Requirement
|
135
|
+
none: false
|
136
|
+
requirements:
|
137
|
+
- - ~>
|
138
|
+
- !ruby/object:Gem::Version
|
139
|
+
version: '1.16'
|
140
|
+
type: :runtime
|
141
|
+
prerelease: false
|
142
|
+
version_requirements: !ruby/object:Gem::Requirement
|
143
|
+
none: false
|
144
|
+
requirements:
|
145
|
+
- - ~>
|
146
|
+
- !ruby/object:Gem::Version
|
147
|
+
version: '1.16'
|
132
148
|
- !ruby/object:Gem::Dependency
|
133
149
|
name: json
|
134
150
|
requirement: !ruby/object:Gem::Requirement
|