chef 0.10.0.beta.10 → 0.10.0.qs.0
Sign up to get free protection for your applications and to get access to all the features.
- data/distro/arch/etc/conf.d/{chef-solr-indexer.conf → chef-expander.conf} +2 -2
- data/distro/arch/etc/rc.d/{chef-solr-indexer → chef-expander} +4 -4
- data/distro/common/html/chef-client.8.html +1 -1
- data/distro/common/html/{chef-expander-cluster.8.html → chef-expander.8.html} +11 -11
- data/distro/common/html/chef-expanderctl.8.html +1 -1
- data/distro/common/html/chef-server-webui.8.html +1 -1
- data/distro/common/html/chef-server.8.html +1 -1
- data/distro/common/html/chef-solo.8.html +1 -1
- data/distro/common/html/chef-solr.8.html +1 -1
- data/distro/common/html/knife-bootstrap.1.html +1 -1
- data/distro/common/html/knife-client.1.html +1 -1
- data/distro/common/html/knife-configure.1.html +1 -1
- data/distro/common/html/knife-cookbook-site.1.html +4 -3
- data/distro/common/html/knife-cookbook.1.html +1 -1
- data/distro/common/html/knife-data-bag.1.html +1 -1
- data/distro/common/html/knife-environment.1.html +1 -1
- data/distro/common/html/knife-exec.1.html +1 -1
- data/distro/common/html/knife-index.1.html +1 -1
- data/distro/common/html/knife-node.1.html +4 -4
- data/distro/common/html/knife-recipe.1.html +1 -1
- data/distro/common/html/knife-role.1.html +1 -1
- data/distro/common/html/knife-search.1.html +1 -1
- data/distro/common/html/knife-ssh.1.html +1 -1
- data/distro/common/html/knife-status.1.html +1 -1
- data/distro/common/html/knife-tag.1.html +1 -1
- data/distro/common/html/knife.1.html +1 -1
- data/distro/common/html/shef.1.html +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 +5 -1
- data/distro/common/man/man1/knife-cookbook.1 +1 -1
- data/distro/common/man/man1/knife-data-bag.1 +1 -1
- data/distro/common/man/man1/knife-environment.1 +1 -1
- data/distro/common/man/man1/knife-exec.1 +1 -1
- data/distro/common/man/man1/knife-index.1 +1 -1
- data/distro/common/man/man1/knife-node.1 +1 -1
- data/distro/common/man/man1/knife-role.1 +1 -1
- data/distro/common/man/man1/knife-search.1 +1 -1
- data/distro/common/man/man1/knife-ssh.1 +1 -1
- data/distro/common/man/man1/knife-status.1 +1 -1
- data/distro/common/man/man1/knife-tag.1 +1 -1
- data/distro/common/man/man1/knife.1 +1 -1
- data/distro/common/man/man1/shef.1 +1 -1
- data/distro/common/man/man8/chef-client.8 +1 -1
- data/distro/common/man/man8/{chef-expander-cluster.8 → chef-expander.8} +5 -5
- 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/distro/common/markdown/man1/knife-cookbook-site.mkd +2 -0
- data/distro/common/markdown/man8/{chef-expander-cluster.mkd → chef-expander.mkd} +4 -4
- data/distro/debian/etc/default/{chef-solr-indexer → chef-expander} +2 -1
- data/distro/debian/etc/init.d/{chef-solr-indexer → chef-expander} +43 -43
- data/distro/debian/etc/init/chef-expander.conf +17 -0
- data/distro/redhat/etc/init.d/{chef-solr-indexer → chef-expander} +9 -9
- data/distro/redhat/etc/init.d/chef-server +2 -2
- data/distro/redhat/etc/init.d/chef-solr +1 -1
- data/distro/redhat/etc/logrotate.d/chef-expander +8 -0
- data/distro/redhat/etc/sysconfig/chef-expander +7 -0
- data/lib/chef.rb +1 -0
- data/lib/chef/api_client.rb +6 -0
- data/lib/chef/application.rb +5 -6
- data/lib/chef/application/client.rb +9 -0
- data/lib/chef/cookbook_uploader.rb +4 -1
- data/lib/chef/cookbook_version.rb +12 -15
- data/lib/chef/data_bag_item.rb +3 -3
- data/lib/chef/handler/error_report.rb +33 -0
- data/lib/chef/knife.rb +21 -4
- data/lib/chef/knife/bootstrap.rb +9 -5
- data/lib/chef/knife/bootstrap/archlinux-gems.erb +2 -1
- data/lib/chef/knife/bootstrap/centos5-gems.erb +9 -14
- data/lib/chef/knife/bootstrap/fedora13-gems.erb +6 -13
- data/lib/chef/knife/bootstrap/ubuntu10.04-gems.erb +6 -15
- data/lib/chef/knife/cookbook_list.rb +0 -1
- data/lib/chef/knife/cookbook_site_download.rb +26 -14
- data/lib/chef/knife/core/bootstrap_context.rb +81 -0
- data/lib/chef/knife/data_bag_create.rb +14 -12
- data/lib/chef/knife/data_bag_edit.rb +2 -2
- data/lib/chef/knife/data_bag_from_file.rb +2 -2
- data/lib/chef/knife/data_bag_show.rb +2 -2
- data/lib/chef/knife/search.rb +3 -0
- data/lib/chef/knife/ssh.rb +2 -0
- data/lib/chef/mixin/language.rb +1 -0
- data/lib/chef/monkey_patches/object.rb +9 -0
- data/lib/chef/provider/deploy.rb +1 -1
- data/lib/chef/provider/subversion.rb +1 -1
- data/lib/chef/recipe.rb +1 -0
- data/lib/chef/resource.rb +9 -8
- data/lib/chef/rest.rb +10 -6
- data/lib/chef/shell_out.rb +1 -1
- data/lib/chef/solr_query.rb +1 -1
- data/lib/chef/version.rb +1 -1
- metadata +16 -13
- data/distro/debian/etc/init/chef-solr-indexer.conf +0 -17
- data/distro/redhat/etc/logrotate.d/chef-solr-indexer +0 -8
- data/distro/redhat/etc/sysconfig/chef-solr-indexer +0 -7
data/lib/chef/rest.rb
CHANGED
@@ -304,13 +304,17 @@ class Chef
|
|
304
304
|
retry
|
305
305
|
end
|
306
306
|
raise Timeout::Error, "Timeout connecting to #{url.host}:#{url.port} for #{rest_request.path}, giving up"
|
307
|
-
rescue Net::HTTPFatalError => e
|
308
|
-
if
|
309
|
-
|
310
|
-
|
311
|
-
|
312
|
-
|
307
|
+
rescue Net::HTTPFatalError, Net::HTTPServerException => e
|
308
|
+
if (e.kind_of?(Net::HTTPFatalError)) || (e.kind_of?(Net::HTTPServerException) && e.response.code == "403")
|
309
|
+
if http_retry_count - http_attempts + 1 > 0
|
310
|
+
sleep_time = 1 + (2 ** http_attempts) + rand(2 ** http_attempts)
|
311
|
+
Chef::Log.error("Server returned error for #{url}, retrying #{http_attempts}/#{http_retry_count} in #{sleep_time}s")
|
312
|
+
sleep(sleep_time)
|
313
|
+
retry
|
314
|
+
end
|
313
315
|
end
|
316
|
+
# mutate the error message so it contains useful info
|
317
|
+
e.message << " url: #{url}"
|
314
318
|
raise
|
315
319
|
end
|
316
320
|
end
|
data/lib/chef/shell_out.rb
CHANGED
data/lib/chef/solr_query.rb
CHANGED
@@ -152,7 +152,7 @@ class Chef
|
|
152
152
|
delete_database(db)
|
153
153
|
|
154
154
|
results = {}
|
155
|
-
[Chef::ApiClient, Chef::Node, Chef::Role].each do |klass|
|
155
|
+
[Chef::ApiClient, Chef::Node, Chef::Role, Chef::Environment].each do |klass|
|
156
156
|
results[klass.name] = reindex_all(klass) ? "success" : "failed"
|
157
157
|
end
|
158
158
|
databags = Chef::DataBag.cdb_list(true)
|
data/lib/chef/version.rb
CHANGED
metadata
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
name: chef
|
3
3
|
version: !ruby/object:Gem::Version
|
4
4
|
prerelease: 7
|
5
|
-
version: 0.10.0.
|
5
|
+
version: 0.10.0.qs.0
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
8
8
|
- Adam Jacob
|
@@ -10,7 +10,7 @@ autorequire:
|
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
12
|
|
13
|
-
date: 2011-
|
13
|
+
date: 2011-06-12 00:00:00 -07:00
|
14
14
|
default_executable:
|
15
15
|
dependencies:
|
16
16
|
- !ruby/object:Gem::Dependency
|
@@ -200,17 +200,17 @@ files:
|
|
200
200
|
- LICENSE
|
201
201
|
- README.rdoc
|
202
202
|
- distro/arch/etc/conf.d/chef-client.conf
|
203
|
+
- distro/arch/etc/conf.d/chef-expander.conf
|
203
204
|
- distro/arch/etc/conf.d/chef-server-webui.conf
|
204
205
|
- distro/arch/etc/conf.d/chef-server.conf
|
205
|
-
- distro/arch/etc/conf.d/chef-solr-indexer.conf
|
206
206
|
- distro/arch/etc/conf.d/chef-solr.conf
|
207
207
|
- distro/arch/etc/rc.d/chef-client
|
208
|
+
- distro/arch/etc/rc.d/chef-expander
|
208
209
|
- distro/arch/etc/rc.d/chef-server
|
209
210
|
- distro/arch/etc/rc.d/chef-server-webui
|
210
211
|
- distro/arch/etc/rc.d/chef-solr
|
211
|
-
- distro/arch/etc/rc.d/chef-solr-indexer
|
212
212
|
- distro/common/html/chef-client.8.html
|
213
|
-
- distro/common/html/chef-expander
|
213
|
+
- distro/common/html/chef-expander.8.html
|
214
214
|
- distro/common/html/chef-expanderctl.8.html
|
215
215
|
- distro/common/html/chef-server-webui.8.html
|
216
216
|
- distro/common/html/chef-server.8.html
|
@@ -252,7 +252,7 @@ files:
|
|
252
252
|
- distro/common/man/man1/knife.1
|
253
253
|
- distro/common/man/man1/shef.1
|
254
254
|
- distro/common/man/man8/chef-client.8
|
255
|
-
- distro/common/man/man8/chef-expander
|
255
|
+
- distro/common/man/man8/chef-expander.8
|
256
256
|
- distro/common/man/man8/chef-expanderctl.8
|
257
257
|
- distro/common/man/man8/chef-server-webui.8
|
258
258
|
- distro/common/man/man8/chef-server.8
|
@@ -276,7 +276,7 @@ files:
|
|
276
276
|
- distro/common/markdown/man1/knife.mkd
|
277
277
|
- distro/common/markdown/man1/shef.mkd
|
278
278
|
- distro/common/markdown/man8/chef-client.mkd
|
279
|
-
- distro/common/markdown/man8/chef-expander
|
279
|
+
- distro/common/markdown/man8/chef-expander.mkd
|
280
280
|
- distro/common/markdown/man8/chef-expanderctl.mkd
|
281
281
|
- distro/common/markdown/man8/chef-server-webui.mkd
|
282
282
|
- distro/common/markdown/man8/chef-server.mkd
|
@@ -284,36 +284,36 @@ files:
|
|
284
284
|
- distro/common/markdown/man8/chef-solr.mkd
|
285
285
|
- distro/common/markdown/README
|
286
286
|
- distro/debian/etc/default/chef-client
|
287
|
+
- distro/debian/etc/default/chef-expander
|
287
288
|
- distro/debian/etc/default/chef-server
|
288
289
|
- distro/debian/etc/default/chef-server-webui
|
289
290
|
- distro/debian/etc/default/chef-solr
|
290
|
-
- distro/debian/etc/default/chef-solr-indexer
|
291
291
|
- distro/debian/etc/init/chef-client.conf
|
292
|
+
- distro/debian/etc/init/chef-expander.conf
|
292
293
|
- distro/debian/etc/init/chef-server-webui.conf
|
293
294
|
- distro/debian/etc/init/chef-server.conf
|
294
|
-
- distro/debian/etc/init/chef-solr-indexer.conf
|
295
295
|
- distro/debian/etc/init/chef-solr.conf
|
296
296
|
- distro/debian/etc/init.d/chef-client
|
297
|
+
- distro/debian/etc/init.d/chef-expander
|
297
298
|
- distro/debian/etc/init.d/chef-server
|
298
299
|
- distro/debian/etc/init.d/chef-server-webui
|
299
300
|
- distro/debian/etc/init.d/chef-solr
|
300
|
-
- distro/debian/etc/init.d/chef-solr-indexer
|
301
301
|
- distro/README
|
302
302
|
- distro/redhat/etc/init.d/chef-client
|
303
|
+
- distro/redhat/etc/init.d/chef-expander
|
303
304
|
- distro/redhat/etc/init.d/chef-server
|
304
305
|
- distro/redhat/etc/init.d/chef-server-webui
|
305
306
|
- distro/redhat/etc/init.d/chef-solr
|
306
|
-
- distro/redhat/etc/init.d/chef-solr-indexer
|
307
307
|
- distro/redhat/etc/logrotate.d/chef-client
|
308
|
+
- distro/redhat/etc/logrotate.d/chef-expander
|
308
309
|
- distro/redhat/etc/logrotate.d/chef-server
|
309
310
|
- distro/redhat/etc/logrotate.d/chef-server-webui
|
310
311
|
- distro/redhat/etc/logrotate.d/chef-solr
|
311
|
-
- distro/redhat/etc/logrotate.d/chef-solr-indexer
|
312
312
|
- distro/redhat/etc/sysconfig/chef-client
|
313
|
+
- distro/redhat/etc/sysconfig/chef-expander
|
313
314
|
- distro/redhat/etc/sysconfig/chef-server
|
314
315
|
- distro/redhat/etc/sysconfig/chef-server-webui
|
315
316
|
- distro/redhat/etc/sysconfig/chef-solr
|
316
|
-
- distro/redhat/etc/sysconfig/chef-solr-indexer
|
317
317
|
- lib/chef/api_client.rb
|
318
318
|
- lib/chef/application/agent.rb
|
319
319
|
- lib/chef/application/client.rb
|
@@ -348,6 +348,7 @@ files:
|
|
348
348
|
- lib/chef/exceptions.rb
|
349
349
|
- lib/chef/file_access_control.rb
|
350
350
|
- lib/chef/file_cache.rb
|
351
|
+
- lib/chef/handler/error_report.rb
|
351
352
|
- lib/chef/handler/json_file.rb
|
352
353
|
- lib/chef/handler.rb
|
353
354
|
- lib/chef/index_queue/amqp_client.rb
|
@@ -388,6 +389,7 @@ files:
|
|
388
389
|
- lib/chef/knife/cookbook_site_vendor.rb
|
389
390
|
- lib/chef/knife/cookbook_test.rb
|
390
391
|
- lib/chef/knife/cookbook_upload.rb
|
392
|
+
- lib/chef/knife/core/bootstrap_context.rb
|
391
393
|
- lib/chef/knife/core/cookbook_scm_repo.rb
|
392
394
|
- lib/chef/knife/core/generic_presenter.rb
|
393
395
|
- lib/chef/knife/core/node_editor.rb
|
@@ -458,6 +460,7 @@ files:
|
|
458
460
|
- lib/chef/mixins.rb
|
459
461
|
- lib/chef/monkey_patches/dir.rb
|
460
462
|
- lib/chef/monkey_patches/numeric.rb
|
463
|
+
- lib/chef/monkey_patches/object.rb
|
461
464
|
- lib/chef/monkey_patches/regexp.rb
|
462
465
|
- lib/chef/monkey_patches/string.rb
|
463
466
|
- lib/chef/monkey_patches/tempfile.rb
|
@@ -1,17 +0,0 @@
|
|
1
|
-
# chef-solr-indexer - Chef Solr Indexer
|
2
|
-
#
|
3
|
-
# Chef Solr Indexer provides indexing of Solr for Chef Server
|
4
|
-
|
5
|
-
description "Chef Solr Indexer"
|
6
|
-
|
7
|
-
start on filesystem
|
8
|
-
stop on runlevel [!2345]
|
9
|
-
|
10
|
-
respawn
|
11
|
-
respawn limit 5 30
|
12
|
-
|
13
|
-
pre-start script
|
14
|
-
test -x /usr/bin/chef-solr-indexer || { stop; exit 0; }
|
15
|
-
end script
|
16
|
-
|
17
|
-
exec /usr/bin/chef-solr-indexer -c /etc/chef/solr.rb -L /var/log/chef/solr-indexer.log
|