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.
Files changed (98) hide show
  1. data/distro/arch/etc/conf.d/{chef-solr-indexer.conf → chef-expander.conf} +2 -2
  2. data/distro/arch/etc/rc.d/{chef-solr-indexer → chef-expander} +4 -4
  3. data/distro/common/html/chef-client.8.html +1 -1
  4. data/distro/common/html/{chef-expander-cluster.8.html → chef-expander.8.html} +11 -11
  5. data/distro/common/html/chef-expanderctl.8.html +1 -1
  6. data/distro/common/html/chef-server-webui.8.html +1 -1
  7. data/distro/common/html/chef-server.8.html +1 -1
  8. data/distro/common/html/chef-solo.8.html +1 -1
  9. data/distro/common/html/chef-solr.8.html +1 -1
  10. data/distro/common/html/knife-bootstrap.1.html +1 -1
  11. data/distro/common/html/knife-client.1.html +1 -1
  12. data/distro/common/html/knife-configure.1.html +1 -1
  13. data/distro/common/html/knife-cookbook-site.1.html +4 -3
  14. data/distro/common/html/knife-cookbook.1.html +1 -1
  15. data/distro/common/html/knife-data-bag.1.html +1 -1
  16. data/distro/common/html/knife-environment.1.html +1 -1
  17. data/distro/common/html/knife-exec.1.html +1 -1
  18. data/distro/common/html/knife-index.1.html +1 -1
  19. data/distro/common/html/knife-node.1.html +4 -4
  20. data/distro/common/html/knife-recipe.1.html +1 -1
  21. data/distro/common/html/knife-role.1.html +1 -1
  22. data/distro/common/html/knife-search.1.html +1 -1
  23. data/distro/common/html/knife-ssh.1.html +1 -1
  24. data/distro/common/html/knife-status.1.html +1 -1
  25. data/distro/common/html/knife-tag.1.html +1 -1
  26. data/distro/common/html/knife.1.html +1 -1
  27. data/distro/common/html/shef.1.html +1 -1
  28. data/distro/common/man/man1/knife-bootstrap.1 +1 -1
  29. data/distro/common/man/man1/knife-client.1 +1 -1
  30. data/distro/common/man/man1/knife-configure.1 +1 -1
  31. data/distro/common/man/man1/knife-cookbook-site.1 +5 -1
  32. data/distro/common/man/man1/knife-cookbook.1 +1 -1
  33. data/distro/common/man/man1/knife-data-bag.1 +1 -1
  34. data/distro/common/man/man1/knife-environment.1 +1 -1
  35. data/distro/common/man/man1/knife-exec.1 +1 -1
  36. data/distro/common/man/man1/knife-index.1 +1 -1
  37. data/distro/common/man/man1/knife-node.1 +1 -1
  38. data/distro/common/man/man1/knife-role.1 +1 -1
  39. data/distro/common/man/man1/knife-search.1 +1 -1
  40. data/distro/common/man/man1/knife-ssh.1 +1 -1
  41. data/distro/common/man/man1/knife-status.1 +1 -1
  42. data/distro/common/man/man1/knife-tag.1 +1 -1
  43. data/distro/common/man/man1/knife.1 +1 -1
  44. data/distro/common/man/man1/shef.1 +1 -1
  45. data/distro/common/man/man8/chef-client.8 +1 -1
  46. data/distro/common/man/man8/{chef-expander-cluster.8 → chef-expander.8} +5 -5
  47. data/distro/common/man/man8/chef-expanderctl.8 +1 -1
  48. data/distro/common/man/man8/chef-server-webui.8 +1 -1
  49. data/distro/common/man/man8/chef-server.8 +1 -1
  50. data/distro/common/man/man8/chef-solo.8 +1 -1
  51. data/distro/common/man/man8/chef-solr.8 +1 -1
  52. data/distro/common/markdown/man1/knife-cookbook-site.mkd +2 -0
  53. data/distro/common/markdown/man8/{chef-expander-cluster.mkd → chef-expander.mkd} +4 -4
  54. data/distro/debian/etc/default/{chef-solr-indexer → chef-expander} +2 -1
  55. data/distro/debian/etc/init.d/{chef-solr-indexer → chef-expander} +43 -43
  56. data/distro/debian/etc/init/chef-expander.conf +17 -0
  57. data/distro/redhat/etc/init.d/{chef-solr-indexer → chef-expander} +9 -9
  58. data/distro/redhat/etc/init.d/chef-server +2 -2
  59. data/distro/redhat/etc/init.d/chef-solr +1 -1
  60. data/distro/redhat/etc/logrotate.d/chef-expander +8 -0
  61. data/distro/redhat/etc/sysconfig/chef-expander +7 -0
  62. data/lib/chef.rb +1 -0
  63. data/lib/chef/api_client.rb +6 -0
  64. data/lib/chef/application.rb +5 -6
  65. data/lib/chef/application/client.rb +9 -0
  66. data/lib/chef/cookbook_uploader.rb +4 -1
  67. data/lib/chef/cookbook_version.rb +12 -15
  68. data/lib/chef/data_bag_item.rb +3 -3
  69. data/lib/chef/handler/error_report.rb +33 -0
  70. data/lib/chef/knife.rb +21 -4
  71. data/lib/chef/knife/bootstrap.rb +9 -5
  72. data/lib/chef/knife/bootstrap/archlinux-gems.erb +2 -1
  73. data/lib/chef/knife/bootstrap/centos5-gems.erb +9 -14
  74. data/lib/chef/knife/bootstrap/fedora13-gems.erb +6 -13
  75. data/lib/chef/knife/bootstrap/ubuntu10.04-gems.erb +6 -15
  76. data/lib/chef/knife/cookbook_list.rb +0 -1
  77. data/lib/chef/knife/cookbook_site_download.rb +26 -14
  78. data/lib/chef/knife/core/bootstrap_context.rb +81 -0
  79. data/lib/chef/knife/data_bag_create.rb +14 -12
  80. data/lib/chef/knife/data_bag_edit.rb +2 -2
  81. data/lib/chef/knife/data_bag_from_file.rb +2 -2
  82. data/lib/chef/knife/data_bag_show.rb +2 -2
  83. data/lib/chef/knife/search.rb +3 -0
  84. data/lib/chef/knife/ssh.rb +2 -0
  85. data/lib/chef/mixin/language.rb +1 -0
  86. data/lib/chef/monkey_patches/object.rb +9 -0
  87. data/lib/chef/provider/deploy.rb +1 -1
  88. data/lib/chef/provider/subversion.rb +1 -1
  89. data/lib/chef/recipe.rb +1 -0
  90. data/lib/chef/resource.rb +9 -8
  91. data/lib/chef/rest.rb +10 -6
  92. data/lib/chef/shell_out.rb +1 -1
  93. data/lib/chef/solr_query.rb +1 -1
  94. data/lib/chef/version.rb +1 -1
  95. metadata +16 -13
  96. data/distro/debian/etc/init/chef-solr-indexer.conf +0 -17
  97. data/distro/redhat/etc/logrotate.d/chef-solr-indexer +0 -8
  98. data/distro/redhat/etc/sysconfig/chef-solr-indexer +0 -7
@@ -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 http_retry_count - http_attempts + 1 > 0
309
- sleep_time = 1 + (2 ** http_attempts) + rand(2 ** http_attempts)
310
- Chef::Log.error("Server returned error for #{url}, retrying #{http_attempts}/#{http_retry_count} in #{sleep_time}s")
311
- sleep(sleep_time)
312
- retry
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
@@ -40,7 +40,7 @@ class Chef
40
40
  class ShellOut
41
41
  READ_WAIT_TIME = 0.01
42
42
  READ_SIZE = 4096
43
- DEFAULT_READ_TIMEOUT = 60
43
+ DEFAULT_READ_TIMEOUT = 600
44
44
  DEFAULT_ENVIRONMENT = {'LC_ALL' => 'C'}
45
45
 
46
46
  if RUBY_PLATFORM =~ /mswin|mingw32|windows/
@@ -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)
@@ -17,7 +17,7 @@
17
17
 
18
18
  class Chef
19
19
  CHEF_ROOT = File.dirname(File.expand_path(File.dirname(__FILE__)))
20
- VERSION = '0.10.0.beta.10'
20
+ VERSION = '0.10.0'
21
21
  end
22
22
 
23
23
  # NOTE: the Chef::Version class is defined in version_class.rb
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.beta.10
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-04-13 00:00:00 -07:00
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-cluster.8.html
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-cluster.8
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-cluster.mkd
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
@@ -1,8 +0,0 @@
1
- /var/log/chef/solr-indexer.log {
2
- rotate 12
3
- weekly
4
- compress
5
- postrotate
6
- /etc/init.d/chef-solr-indexer condrestart >/dev/null || :
7
- endscript
8
- }
@@ -1,7 +0,0 @@
1
- # Configuration file for the chef-solr-indexer service
2
-
3
- #PIDFILE=/var/run/chef/solr-indexer.pid
4
- #CONFIG=/etc/chef/solr-indexer.rb
5
- #LOGFILE=/var/log/chef/solr-indexer.log
6
- # Any additional chef-solr-indexer options.
7
- #OPTIONS=