chef 12.5.0.alpha.1 → 12.5.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (275) hide show
  1. checksums.yaml +4 -4
  2. data/CONTRIBUTING.md +21 -25
  3. data/Gemfile +46 -0
  4. data/README.md +4 -4
  5. data/Rakefile +5 -110
  6. data/distro/common/html/knife_cookbook_site.html +18 -18
  7. data/distro/common/man/man1/knife-cookbook-site.1 +11 -11
  8. data/lib/chef/application.rb +1 -1
  9. data/lib/chef/application/apply.rb +19 -1
  10. data/lib/chef/application/client.rb +11 -5
  11. data/lib/chef/application/knife.rb +2 -2
  12. data/lib/chef/application/windows_service_manager.rb +9 -7
  13. data/lib/chef/chef_class.rb +39 -0
  14. data/lib/chef/chef_fs/data_handler/client_data_handler.rb +3 -1
  15. data/lib/chef/chef_fs/file_system/acl_dir.rb +3 -4
  16. data/lib/chef/chef_fs/file_system/acls_dir.rb +5 -1
  17. data/lib/chef/chef_fs/file_system/base_fs_dir.rb +0 -5
  18. data/lib/chef/chef_fs/file_system/base_fs_object.rb +5 -2
  19. data/lib/chef/chef_fs/file_system/chef_repository_file_system_cookbook_dir.rb +2 -9
  20. data/lib/chef/chef_fs/file_system/chef_repository_file_system_cookbook_entry.rb +2 -9
  21. data/lib/chef/chef_fs/file_system/chef_repository_file_system_cookbooks_dir.rb +10 -17
  22. data/lib/chef/chef_fs/file_system/chef_repository_file_system_entry.rb +1 -12
  23. data/lib/chef/chef_fs/file_system/chef_repository_file_system_root_dir.rb +15 -11
  24. data/lib/chef/chef_fs/file_system/chef_server_root_dir.rb +8 -2
  25. data/lib/chef/chef_fs/file_system/cookbook_dir.rb +3 -4
  26. data/lib/chef/chef_fs/file_system/cookbooks_acl_dir.rb +1 -1
  27. data/lib/chef/chef_fs/file_system/cookbooks_dir.rb +3 -11
  28. data/lib/chef/chef_fs/file_system/data_bags_dir.rb +3 -5
  29. data/lib/chef/chef_fs/file_system/environments_dir.rb +1 -1
  30. data/lib/chef/chef_fs/file_system/file_system_entry.rb +7 -4
  31. data/lib/chef/chef_fs/file_system/memory_dir.rb +2 -3
  32. data/lib/chef/chef_fs/file_system/multiplexed_dir.rb +15 -0
  33. data/lib/chef/chef_fs/file_system/nodes_dir.rb +1 -1
  34. data/lib/chef/chef_fs/file_system/organization_members_entry.rb +2 -2
  35. data/lib/chef/chef_fs/file_system/rest_list_dir.rb +4 -9
  36. data/lib/chef/client.rb +2 -3
  37. data/lib/chef/config.rb +34 -2
  38. data/lib/chef/cookbook/metadata.rb +25 -3
  39. data/lib/chef/cookbook/synchronizer.rb +1 -1
  40. data/lib/chef/cookbook_site_streaming_uploader.rb +1 -1
  41. data/lib/chef/cookbook_version.rb +3 -3
  42. data/lib/chef/deprecation/mixin/template.rb +1 -2
  43. data/lib/chef/deprecation/provider/cookbook_file.rb +1 -1
  44. data/lib/chef/deprecation/provider/file.rb +1 -1
  45. data/lib/chef/deprecation/provider/remote_directory.rb +52 -0
  46. data/lib/chef/deprecation/provider/remote_file.rb +1 -2
  47. data/lib/chef/deprecation/provider/template.rb +1 -1
  48. data/lib/chef/deprecation/warnings.rb +3 -4
  49. data/lib/chef/dsl/reboot_pending.rb +3 -2
  50. data/lib/chef/dsl/recipe.rb +6 -5
  51. data/lib/chef/dsl/resources.rb +2 -2
  52. data/lib/chef/event_dispatch/base.rb +12 -7
  53. data/lib/chef/event_dispatch/dispatcher.rb +21 -6
  54. data/lib/chef/exceptions.rb +22 -0
  55. data/lib/chef/file_content_management/tempfile.rb +1 -1
  56. data/lib/chef/formatters/base.rb +3 -0
  57. data/lib/chef/formatters/doc.rb +53 -5
  58. data/lib/chef/formatters/error_inspectors/compile_error_inspector.rb +36 -0
  59. data/lib/chef/formatters/minimal.rb +2 -2
  60. data/lib/chef/knife.rb +35 -55
  61. data/lib/chef/knife/bootstrap.rb +41 -0
  62. data/lib/chef/knife/bootstrap/chef_vault_handler.rb +1 -0
  63. data/lib/chef/knife/bootstrap/client_builder.rb +16 -0
  64. data/lib/chef/knife/bootstrap/templates/README.md +3 -4
  65. data/lib/chef/knife/cookbook_create.rb +1 -1
  66. data/lib/chef/knife/cookbook_site_download.rb +1 -1
  67. data/lib/chef/knife/cookbook_site_install.rb +1 -1
  68. data/lib/chef/knife/cookbook_site_share.rb +6 -6
  69. data/lib/chef/knife/cookbook_site_unshare.rb +2 -2
  70. data/lib/chef/knife/core/bootstrap_context.rb +12 -4
  71. data/lib/chef/knife/core/custom_manifest_loader.rb +69 -0
  72. data/lib/chef/knife/core/gem_glob_loader.rb +138 -0
  73. data/lib/chef/knife/core/hashed_command_loader.rb +80 -0
  74. data/lib/chef/knife/core/node_presenter.rb +24 -1
  75. data/lib/chef/knife/core/object_loader.rb +1 -0
  76. data/lib/chef/knife/core/subcommand_loader.rb +131 -146
  77. data/lib/chef/knife/node_run_list_remove.rb +12 -1
  78. data/lib/chef/knife/null.rb +10 -0
  79. data/lib/chef/knife/rehash.rb +62 -0
  80. data/lib/chef/knife/search.rb +3 -3
  81. data/lib/chef/knife/ssh.rb +52 -30
  82. data/lib/chef/local_mode.rb +5 -0
  83. data/lib/chef/log.rb +5 -1
  84. data/lib/chef/mixin/deprecation.rb +8 -8
  85. data/lib/chef/mixin/params_validate.rb +2 -2
  86. data/lib/chef/mixin/template.rb +48 -0
  87. data/lib/chef/mixin/which.rb +1 -1
  88. data/lib/chef/mixin/wide_string.rb +72 -0
  89. data/lib/chef/mixin/windows_architecture_helper.rb +15 -39
  90. data/lib/chef/mixin/windows_env_helper.rb +4 -1
  91. data/lib/chef/monkey_patches/webrick-utils.rb +51 -0
  92. data/lib/chef/monkey_patches/win32/registry.rb +72 -0
  93. data/lib/chef/node.rb +97 -3
  94. data/lib/chef/node_map.rb +2 -2
  95. data/lib/chef/platform/provider_mapping.rb +5 -6
  96. data/lib/chef/platform/query_helpers.rb +46 -4
  97. data/lib/chef/platform/service_helpers.rb +30 -32
  98. data/lib/chef/policy_builder.rb +1 -8
  99. data/lib/chef/policy_builder/dynamic.rb +186 -0
  100. data/lib/chef/policy_builder/expand_node_object.rb +30 -15
  101. data/lib/chef/policy_builder/policyfile.rb +155 -18
  102. data/lib/chef/property.rb +38 -9
  103. data/lib/chef/provider.rb +104 -12
  104. data/lib/chef/provider/batch.rb +8 -0
  105. data/lib/chef/provider/deploy.rb +2 -2
  106. data/lib/chef/provider/directory.rb +14 -2
  107. data/lib/chef/provider/dsc_resource.rb +5 -9
  108. data/lib/chef/provider/group/pw.rb +1 -1
  109. data/lib/chef/provider/ifconfig.rb +2 -2
  110. data/lib/chef/provider/mount.rb +7 -3
  111. data/lib/chef/provider/package/dpkg.rb +5 -11
  112. data/lib/chef/provider/package/rpm.rb +2 -2
  113. data/lib/chef/provider/package/rubygems.rb +1 -1
  114. data/lib/chef/provider/package/windows/msi.rb +2 -2
  115. data/lib/chef/provider/package/yum.rb +17 -5
  116. data/lib/chef/provider/powershell_script.rb +27 -4
  117. data/lib/chef/provider/remote_directory.rb +190 -102
  118. data/lib/chef/provider/service.rb +12 -2
  119. data/lib/chef/provider/service/aix.rb +1 -1
  120. data/lib/chef/provider/service/debian.rb +3 -5
  121. data/lib/chef/provider/service/freebsd.rb +1 -1
  122. data/lib/chef/provider/service/gentoo.rb +3 -3
  123. data/lib/chef/provider/service/init.rb +3 -3
  124. data/lib/chef/provider/service/insserv.rb +2 -4
  125. data/lib/chef/provider/service/invokercd.rb +2 -4
  126. data/lib/chef/provider/service/openbsd.rb +2 -1
  127. data/lib/chef/provider/service/redhat.rb +52 -16
  128. data/lib/chef/provider/service/simple.rb +2 -2
  129. data/lib/chef/provider/service/systemd.rb +3 -5
  130. data/lib/chef/provider/service/upstart.rb +4 -6
  131. data/lib/chef/provider/subversion.rb +13 -7
  132. data/lib/chef/provider/template/content.rb +16 -6
  133. data/lib/chef/provider/user/solaris.rb +32 -4
  134. data/lib/chef/provider/windows_script.rb +3 -5
  135. data/lib/chef/provider_resolver.rb +2 -2
  136. data/lib/chef/resource.rb +85 -27
  137. data/lib/chef/resource/action_class.rb +83 -0
  138. data/lib/chef/resource/chef_gem.rb +3 -3
  139. data/lib/chef/resource/deploy.rb +8 -2
  140. data/lib/chef/resource/dsc_script.rb +2 -0
  141. data/lib/chef/resource/file/verification.rb +1 -1
  142. data/lib/chef/resource/registry_key.rb +1 -1
  143. data/lib/chef/resource/service.rb +10 -2
  144. data/lib/chef/resource/subversion.rb +5 -0
  145. data/lib/chef/resource/windows_script.rb +6 -2
  146. data/lib/chef/resource/yum_package.rb +10 -1
  147. data/lib/chef/resource_resolver.rb +3 -3
  148. data/lib/chef/run_context.rb +6 -8
  149. data/lib/chef/run_list/versioned_recipe_list.rb +15 -0
  150. data/lib/chef/run_lock.rb +30 -21
  151. data/lib/chef/util/powershell/ps_credential.rb +4 -0
  152. data/lib/chef/util/windows.rb +0 -32
  153. data/lib/chef/util/windows/net_group.rb +85 -106
  154. data/lib/chef/util/windows/net_use.rb +35 -71
  155. data/lib/chef/util/windows/net_user.rb +0 -1
  156. data/lib/chef/util/windows/volume.rb +19 -19
  157. data/lib/chef/version.rb +3 -3
  158. data/lib/chef/win32/api.rb +1 -0
  159. data/lib/chef/win32/api/file.rb +20 -0
  160. data/lib/chef/win32/api/net.rb +163 -43
  161. data/lib/chef/win32/api/registry.rb +51 -0
  162. data/lib/chef/win32/api/system.rb +23 -0
  163. data/lib/chef/win32/api/unicode.rb +0 -43
  164. data/lib/chef/win32/crypto.rb +2 -1
  165. data/lib/chef/win32/file.rb +28 -3
  166. data/lib/chef/win32/mutex.rb +1 -2
  167. data/lib/chef/win32/net.rb +162 -8
  168. data/lib/chef/win32/process.rb +13 -0
  169. data/lib/chef/win32/registry.rb +25 -28
  170. data/lib/chef/win32/security.rb +1 -1
  171. data/lib/chef/win32/security/token.rb +1 -1
  172. data/lib/chef/win32/system.rb +62 -0
  173. data/lib/chef/win32/unicode.rb +7 -2
  174. data/lib/chef/win32/version.rb +0 -4
  175. data/spec/data/cookbooks/openldap/templates/default/helpers.erb +14 -0
  176. data/spec/data/cookbooks/openldap/templates/default/nested_openldap_partials.erb +1 -0
  177. data/spec/data/cookbooks/openldap/templates/default/nested_partial.erb +1 -0
  178. data/spec/data/dsc_lcm.pfx +0 -0
  179. data/spec/functional/dsl/reboot_pending_spec.rb +33 -43
  180. data/spec/functional/knife/cookbook_delete_spec.rb +17 -7
  181. data/spec/functional/knife/ssh_spec.rb +16 -0
  182. data/spec/functional/resource/deploy_revision_spec.rb +1 -1
  183. data/spec/functional/resource/dsc_resource_spec.rb +2 -0
  184. data/spec/functional/resource/dsc_script_spec.rb +91 -2
  185. data/spec/functional/resource/group_spec.rb +67 -44
  186. data/spec/functional/resource/powershell_script_spec.rb +104 -15
  187. data/spec/functional/resource/windows_service_spec.rb +1 -1
  188. data/spec/functional/run_lock_spec.rb +368 -189
  189. data/spec/functional/win32/{registry_helper_spec.rb → registry_spec.rb} +4 -23
  190. data/spec/integration/client/client_spec.rb +51 -0
  191. data/spec/integration/knife/download_spec.rb +4 -0
  192. data/spec/integration/knife/list_spec.rb +8 -0
  193. data/spec/integration/knife/upload_spec.rb +1 -1
  194. data/spec/integration/recipes/recipe_dsl_spec.rb +1 -1
  195. data/spec/integration/recipes/remote_directory.rb +74 -0
  196. data/spec/integration/recipes/resource_action_spec.rb +42 -22
  197. data/spec/integration/recipes/resource_converge_if_changed_spec.rb +423 -0
  198. data/spec/integration/recipes/resource_load_spec.rb +206 -0
  199. data/spec/spec_helper.rb +8 -0
  200. data/spec/support/platform_helpers.rb +13 -0
  201. data/{lib/chef/mixin/wstring.rb → spec/support/shared/context/win32.rb} +15 -12
  202. data/spec/support/shared/functional/windows_script.rb +63 -26
  203. data/spec/support/shared/unit/mock_shellout.rb +46 -0
  204. data/spec/support/shared/unit/provider/file.rb +10 -4
  205. data/spec/unit/application/client_spec.rb +16 -3
  206. data/spec/unit/application/knife_spec.rb +2 -2
  207. data/spec/unit/chef_class_spec.rb +0 -4
  208. data/spec/unit/client_spec.rb +6 -1
  209. data/spec/unit/config_spec.rb +31 -0
  210. data/spec/unit/cookbook/metadata_spec.rb +23 -3
  211. data/spec/unit/cookbook/syntax_check_spec.rb +3 -0
  212. data/spec/unit/deprecation_spec.rb +3 -6
  213. data/spec/unit/dsl/reboot_pending_spec.rb +12 -6
  214. data/spec/unit/event_dispatch/dispatcher_spec.rb +65 -3
  215. data/spec/unit/event_dispatch/dsl_spec.rb +0 -4
  216. data/spec/unit/formatters/doc_spec.rb +32 -0
  217. data/spec/unit/formatters/error_inspectors/compile_error_inspector_spec.rb +26 -0
  218. data/spec/unit/knife/bootstrap/client_builder_spec.rb +27 -0
  219. data/spec/unit/knife/bootstrap_spec.rb +55 -3
  220. data/spec/unit/knife/cookbook_site_share_spec.rb +3 -3
  221. data/spec/unit/knife/core/bootstrap_context_spec.rb +21 -4
  222. data/spec/unit/knife/core/custom_manifest_loader_spec.rb +41 -0
  223. data/spec/unit/knife/core/gem_glob_loader_spec.rb +210 -0
  224. data/spec/unit/knife/core/hashed_command_loader_spec.rb +93 -0
  225. data/spec/unit/knife/core/subcommand_loader_spec.rb +16 -192
  226. data/spec/unit/knife/node_run_list_remove_spec.rb +17 -0
  227. data/spec/unit/mixin/enforce_ownership_and_permissions_spec.rb +10 -10
  228. data/spec/unit/mixin/template_spec.rb +5 -1
  229. data/spec/unit/mixin/windows_architecture_helper_spec.rb +13 -8
  230. data/spec/unit/node_spec.rb +213 -0
  231. data/spec/unit/platform/query_helpers_spec.rb +146 -3
  232. data/spec/unit/policy_builder/dynamic_spec.rb +275 -0
  233. data/spec/unit/policy_builder/expand_node_object_spec.rb +37 -38
  234. data/spec/unit/policy_builder/policyfile_spec.rb +260 -46
  235. data/spec/unit/property/validation_spec.rb +5 -0
  236. data/spec/unit/property_spec.rb +152 -26
  237. data/spec/unit/provider/deploy_spec.rb +5 -5
  238. data/spec/unit/provider/directory_spec.rb +35 -0
  239. data/spec/unit/provider/dsc_resource_spec.rb +3 -10
  240. data/spec/unit/provider/ifconfig_spec.rb +22 -2
  241. data/spec/unit/provider/mount/aix_spec.rb +2 -1
  242. data/spec/unit/provider/mount/mount_spec.rb +6 -0
  243. data/spec/unit/provider/mount/windows_spec.rb +14 -0
  244. data/spec/unit/provider/mount_spec.rb +12 -1
  245. data/spec/unit/provider/package/dpkg_spec.rb +8 -1
  246. data/spec/unit/provider/package/rpm_spec.rb +18 -1
  247. data/spec/unit/provider/package/rubygems_spec.rb +18 -0
  248. data/spec/unit/provider/package/yum_spec.rb +97 -24
  249. data/spec/unit/provider/powershell_script_spec.rb +52 -26
  250. data/spec/unit/provider/remote_directory_spec.rb +1 -2
  251. data/spec/unit/provider/service/aix_service_spec.rb +3 -3
  252. data/spec/unit/provider/service/gentoo_service_spec.rb +4 -4
  253. data/spec/unit/provider/service/openbsd_service_spec.rb +10 -8
  254. data/spec/unit/provider/service/redhat_spec.rb +88 -8
  255. data/spec/unit/provider/service/upstart_service_spec.rb +11 -7
  256. data/spec/unit/provider/service/windows_spec.rb +211 -200
  257. data/spec/unit/provider/subversion_spec.rb +50 -31
  258. data/spec/unit/provider/template/content_spec.rb +93 -2
  259. data/spec/unit/provider/user/solaris_spec.rb +66 -9
  260. data/spec/unit/provider_resolver_spec.rb +707 -650
  261. data/spec/unit/resource/deploy_spec.rb +7 -1
  262. data/spec/unit/resource/dsc_script_spec.rb +4 -0
  263. data/spec/unit/resource/file/verification_spec.rb +1 -1
  264. data/spec/unit/resource/powershell_script_spec.rb +17 -13
  265. data/spec/unit/resource/service_spec.rb +4 -4
  266. data/spec/unit/resource/subversion_spec.rb +4 -0
  267. data/spec/unit/resource/yum_package_spec.rb +10 -1
  268. data/spec/unit/run_list/versioned_recipe_list_spec.rb +5 -0
  269. data/spec/unit/win32/registry_spec.rb +394 -0
  270. data/tasks/external_tests.rb +47 -23
  271. data/tasks/maintainers.rb +155 -14
  272. metadata +51 -26
  273. data/lib/chef/knife/bootstrap/templates/archlinux-gems.erb +0 -76
  274. data/lib/chef/knife/bootstrap/templates/chef-aix.erb +0 -72
  275. data/spec/unit/registry_helper_spec.rb +0 -390
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: b878f5f1ff6e11e17f28431bf13983c1eb79b7a8
4
- data.tar.gz: 1a4961de80b9f4f9c76b0c76747a14af12818519
3
+ metadata.gz: 557c3370ca4b630b3b0d88a0e6d1dc537fe8eecd
4
+ data.tar.gz: 23e7884bba6c18220f795feeb56e0bf24529cdef
5
5
  SHA512:
6
- metadata.gz: f8d3e8cb4a2f4cd826942d7bf6f7b250964a1197677b30f8a3f64711d568e84241a22ad0effa4e0fe721556a58bf51cf84f418a7ef2d986943a913020f9ee13f
7
- data.tar.gz: 54ab263002c8de538b3167e25b17bbc37808d705c33817b9634d2ad7ba032c8ea9d0b02e84514d70d4178d11ab350f58a4f7a01c04c81e044e1d54ffb4f278ba
6
+ metadata.gz: 03db54c21bf46780976bdbf85ffd99229b4de092ffbe4c4ec4ac8e4eaee8228473df21bed284f73356528043d836a4d49d20381325def7b10f2cb9db6d843251
7
+ data.tar.gz: 48bdefe05abdfeb788440d6333538dbd9df996c9847a676b7360e7f42f9b238608819c2f9997d8dd8e469c635644c0ee0be1d75b878d5da7cc3796d01084c216
@@ -11,7 +11,7 @@ We utilize **Github Issues** for issue tracking and contributions. You can contr
11
11
 
12
12
  We have a 3 step process that utilizes **Github Issues**:
13
13
 
14
- 1. Sign or be added to an existing [Contributor License Agreement (CLA)](https://supermarket.getchef.com/become-a-contributor).
14
+ 1. Sign or be added to an existing [Contributor License Agreement (CLA)](https://supermarket.chef.io/become-a-contributor).
15
15
  2. Create a Github Pull Request.
16
16
  3. Do [Code Review](#cr) with the **Chef Engineering Team** or **Chef Core Committers** on the pull request.
17
17
 
@@ -21,7 +21,7 @@ Chef is built to last. We strive to ensure high quality throughout the Chef expe
21
21
  this, we require a couple of things for all pull requests to Chef:
22
22
 
23
23
  1. **Tests:** To ensure high quality code and protect against future regressions, we require all the
24
- code in Chef to have at least unit test coverage. See the [spec/unit](https://github.com/opscode/chef/tree/master/spec/unit)
24
+ code in Chef to have at least unit test coverage. See the [spec/unit](https://github.com/chef/chef/tree/master/spec/unit)
25
25
  directory for the existing tests and use ```bundle exec rake spec``` to run them.
26
26
  2. **Green Travis Run:** We use [Travis CI](https://travis-ci.org/) in order to run our tests
27
27
  continuously on all the pull requests. We require the Travis runs to succeed on every pull
@@ -63,14 +63,14 @@ You can watch the recordings of the old Code Review hangouts on the [opscodebtm]
63
63
  Licensing is very important to open source projects. It helps ensure the
64
64
  software continues to be available under the terms that the author desired.
65
65
 
66
- Chef uses [the Apache 2.0 license](https://github.com/opscode/chef/blob/master/LICENSE)
66
+ Chef uses [the Apache 2.0 license](https://github.com/chef/chef/blob/master/LICENSE)
67
67
  to strike a balance between open contribution and allowing you to use the
68
68
  software however you would like to.
69
69
 
70
70
  The license tells you what rights you have that are provided by the copyright holder.
71
71
  It is important that the contributor fully understands what rights they are
72
72
  licensing and agrees to them. Sometimes the copyright holder isn't the contributor,
73
- most often when the contributor is doing work for a company.
73
+ such as when the contributor is doing work for a company.
74
74
 
75
75
  To make a good faith effort to ensure these criteria are met, Chef requires an Individual CLA
76
76
  or a Corporate CLA for contributions. This agreement helps ensure you are aware of the
@@ -81,10 +81,10 @@ To make a good faith effort to ensure these criteria are met, Chef requires an I
81
81
  It only takes a few minutes to complete a CLA, and you retain the copyright to your contribution.
82
82
 
83
83
  You can complete our
84
- [Individual CLA](https://supermarket.getchef.com/icla-signatures/new) online.
84
+ [Individual CLA](https://supermarket.chef.io/icla-signatures/new) online.
85
85
  If you're contributing on behalf of your employer and they retain the copyright for your works,
86
86
  have your employer fill out our
87
- [Corporate CLA](https://supermarket.getchef.com/ccla-signatures/new) instead.
87
+ [Corporate CLA](https://supermarket.chef.io/ccla-signatures/new) instead.
88
88
 
89
89
  ### Chef Obvious Fix Policy
90
90
 
@@ -109,7 +109,7 @@ As a rule of thumb, changes are obvious fixes if they do not introduce any new f
109
109
  ```
110
110
  ------------------------------------------------------------------------
111
111
  commit 370adb3f82d55d912b0cf9c1d1e99b132a8ed3b5
112
- Author: danielsdeleo <dan@opscode.com>
112
+ Author: danielsdeleo <dan@chef.io>
113
113
  Date: Wed Sep 18 11:44:40 2013 -0700
114
114
 
115
115
  Fix typo in config file docs.
@@ -126,16 +126,16 @@ Chef Issue Tracking is handled using Github Issues.
126
126
  If you are familiar with Chef and know the component that is causing you a problem or if you
127
127
  have a feature request on a specific component you can file an issue in the corresponding
128
128
  Github project. All of our Open Source Software can be found in our
129
- [Github organization](https://github.com/opscode/).
129
+ [Github organization](https://github.com/chef/).
130
130
 
131
131
  There is also a listing of the various Chef products and where to file issues that can be
132
132
  found in the Chef docs in the [community contributions section](https://docs.chef.io/community_contributions.html#issues-and-bug-reports).
133
133
 
134
- Otherwise you can file your issue in the [Chef project](https://github.com/opscode/chef/issues)
134
+ Otherwise you can file your issue in the [Chef project](https://github.com/chef/chef/issues)
135
135
  and we will make sure it gets filed against the appropriate project.
136
136
 
137
- In order to decrease the back and forth an issues and help us get to the bottom of them quickly
138
- we use below issue template. You can copy paste this code into the issue you are opening and
137
+ In order to decrease the back and forth in issues, and to help us get to the bottom of them quickly
138
+ we use the below issue template. You can copy/paste this template into the issue you are opening and
139
139
  edit it accordingly.
140
140
 
141
141
  <a name="issuetemplate"></a>
@@ -148,33 +148,29 @@ In order to decrease the back and forth an issues and help us get to the bottom
148
148
  ### Scenario:
149
149
  [What you are trying to achieve and you can't?]
150
150
 
151
-
152
-
153
151
  ### Steps to Reproduce:
154
152
  [If you are filing an issue what are the things we need to do in order to repro your problem?]
155
153
 
156
-
157
154
  ### Expected Result:
158
155
  [What are you expecting to happen as the consequence of above reproduction steps?]
159
156
 
160
-
161
157
  ### Actual Result:
162
158
  [What actually happens after the reproduction steps?]
163
159
  ```
164
160
 
165
161
  ### Useful Github Queries
166
162
 
167
- Contributions go through a review process to improve code quality and avoid regressions. Managing a large number of contributions requires a workflow to provide queues for work such as triage, code review, and merging. A semi-formal process has evolved over the life of the project. Chef maintains this process pending community development and acceptance of an [RFC](https://github.com/opscode/chef-rfc). These queries will help track contributions through this process:
163
+ Contributions go through a review process to improve code quality and avoid regressions. Managing a large number of contributions requires a workflow to provide queues for work such as triage, code review, and merging. A semi-formal process has evolved over the life of the project. Chef maintains this process pending community development and acceptance of an [RFC](https://github.com/chef/chef-rfc). These queries will help track contributions through this process:
168
164
 
169
- * [Issues that are not assigned to a team](https://github.com/opscode/chef/issues?q=is%3Aopen+-label%3AAIX+-label%3ABSD+-label%3Awindows+-label%3A%22Chef+Core%22++-label%3A%22Dev+Tools%22+-label%3AUbuntu+-label%3A%22Enterprise+Linux%22+-label%3A%22Ready+For+Merge%22+-label%3AMac+-label%3ASolaris+)
170
- * [Untriaged Issues](https://github.com/opscode/chef/issues?q=is%3Aopen+is%3Aissue+-label%3ABug+-label%3AEnhancement+-label%3A%22Tech+Cleanup%22+-label%3A%22Ready+For+Merge%22)
171
- * [PRs to be Reviewed](https://github.com/opscode/chef/labels/Pending%20Maintainer%20Review)
172
- * [Suitable for First Contribution](https://github.com/opscode/chef/labels/Easy)
165
+ * [Issues that are not assigned to a team](https://github.com/chef/chef/issues?q=is%3Aopen+-label%3AAIX+-label%3ABSD+-label%3Awindows+-label%3A%22Chef+Core%22++-label%3A%22Dev+Tools%22+-label%3AUbuntu+-label%3A%22Enterprise+Linux%22+-label%3A%22Ready+For+Merge%22+-label%3AMac+-label%3ASolaris+)
166
+ * [Untriaged Issues](https://github.com/chef/chef/issues?q=is%3Aopen+is%3Aissue+-label%3ABug+-label%3AEnhancement+-label%3A%22Tech+Cleanup%22+-label%3A%22Ready+For+Merge%22)
167
+ * [PRs to be Reviewed](https://github.com/chef/chef/labels/Pending%20Maintainer%20Review)
168
+ * [Suitable for First Contribution](https://github.com/chef/chef/labels/Easy)
173
169
 
174
170
  ## <a name="release"></a> Chef Release Cycles
175
171
 
176
172
  Our primary shipping vehicle is operating system specific packages that includes
177
- all the requirements of Chef. We call these [Omnibus packages](https://github.com/opscode/omnibus-ruby)
173
+ all the requirements of Chef. We call these [Omnibus packages](https://github.com/chef/omnibus)
178
174
 
179
175
  We also release our software as gems to [Rubygems](https://rubygems.org/) but we strongly
180
176
  recommend using Chef packages since they are the only combination of native libraries &
@@ -194,7 +190,7 @@ We frequently make `alpha` and `beta` releases with version numbers that look li
194
190
  We do a `Minor` release approximately every 3 months and `Patch` releases on a when-needed
195
191
  basis for regressions, significant bugs, and security issues.
196
192
 
197
- Announcements of releases are available on [Chef Blog](http://www.getchef.com/blog) when they are
193
+ Announcements of releases are available on [Chef Blog](http://www.chef.io/blog) when they are
198
194
  available.
199
195
 
200
196
  ## Chef Community
@@ -207,6 +203,6 @@ Chef is made possible by a strong community of developers and system administrat
207
203
 
208
204
  Also here are some additional pointers to some awesome Chef content:
209
205
 
210
- * [Chef Docs](http://docs.opscode.com/)
211
- * [Learn Chef](https://learnchef.opscode.com/)
212
- * [Chef Inc](http://www.getchef.com/)
206
+ * [Chef Docs](https://docs.chef.io/)
207
+ * [Learn Chef](https://learn.chef.io/)
208
+ * [Chef Inc](https://www.chef.io/)
data/Gemfile ADDED
@@ -0,0 +1,46 @@
1
+ source "https://rubygems.org"
2
+ gemspec :name => "chef"
3
+
4
+ gem "activesupport", "< 4.0.0", :group => :compat_testing, :platform => "ruby"
5
+
6
+ gem 'chef-config', path: "chef-config"
7
+
8
+ group(:docgen) do
9
+ gem "yard"
10
+ end
11
+
12
+ group(:maintenance) do
13
+ gem "tomlrb"
14
+
15
+ # To sync maintainers with github
16
+ gem "octokit"
17
+ gem "netrc"
18
+ end
19
+
20
+ group(:development, :test) do
21
+
22
+ gem "simplecov"
23
+ gem 'rack', "~> 1.5.1"
24
+
25
+
26
+ gem 'ruby-shadow', :platforms => :ruby unless RUBY_PLATFORM.downcase.match(/(aix|cygwin)/)
27
+
28
+ # For external tests
29
+ # gem 'chef-zero', github: 'chef/chef-zero'
30
+ # gem 'cheffish', github: 'chef/cheffish'
31
+ # gem 'chef-provisioning'#, github: 'chef/chef-provisioning'
32
+ # gem 'chef-provisioning-aws', github: 'chef/chef-provisioning-aws'
33
+ # gem 'test-kitchen'
34
+ # gem 'chefspec'
35
+ # gem 'chef-sugar'
36
+ # gem 'poise', github: 'poise/poise', branch: 'deeecb890a6a0bc2037dfb09ce0fd0a8931519aa'
37
+ # gem 'halite', github: 'poise/halite'
38
+ # gem 'foodcritic', github: 'acrmp/foodcritic', branch: 'v5.0.0'
39
+ # gem 'chef-rewind'
40
+ end
41
+
42
+ instance_eval(ENV['GEMFILE_MOD']) if ENV['GEMFILE_MOD']
43
+
44
+ # If you want to load debugging tools into the bundle exec sandbox,
45
+ # add these additional dependencies into chef/Gemfile.local
46
+ eval(IO.read(__FILE__ + '.local'), binding) if File.exists?(__FILE__ + '.local')
data/README.md CHANGED
@@ -68,11 +68,11 @@ read the
68
68
 
69
69
  The general development process is:
70
70
 
71
- 1. Fork this repo and clone it to your workstation
72
- 2. Create a feature branch for your change
73
- 3. Write code and tests
71
+ 1. Fork this repo and clone it to your workstation.
72
+ 2. Create a feature branch for your change.
73
+ 3. Write code and tests.
74
74
  4. Push your feature branch to github and open a pull request against
75
- master
75
+ master.
76
76
 
77
77
  Once your repository is set up, you can start working on the code. We do use
78
78
  TDD with RSpec, so you'll need to get a development environment running.
data/Rakefile CHANGED
@@ -20,121 +20,15 @@
20
20
  VERSION = IO.read(File.expand_path("../VERSION", __FILE__)).strip
21
21
 
22
22
  require 'rubygems'
23
- require 'rubygems/package_task'
23
+ require 'chef-config/package_task'
24
24
  require 'rdoc/task'
25
25
  require_relative 'tasks/rspec'
26
26
  require_relative 'tasks/external_tests'
27
27
  require_relative 'tasks/maintainers'
28
28
 
29
- GEM_NAME = "chef"
30
-
31
- desc "build Gems of Chef's components"
32
- task :package_components do
33
- Dir.chdir("chef-config") do
34
- sh "rake package"
35
- end
36
- end
37
-
38
- task :package => :package_components
39
-
40
- desc "build and install chef's components"
41
- task :install_components => :package_components do
42
- Dir.chdir("chef-config") do
43
- sh "rake install"
44
- end
45
- end
46
-
47
- task :install => :install_components
48
-
49
- desc "clean up builds of Chef's components"
50
- task :clobber_component_packages do
51
- Dir.chdir("chef-config") do
52
- sh "rake clobber_package"
53
- end
54
- end
55
-
56
- task :clobber_package => :clobber_component_packages
57
-
58
- desc "Update the version number for Chef's components"
59
- task :update_components_versions do
60
- Dir.chdir("chef-config") do
61
- sh "rake version"
62
- end
63
- end
64
-
65
- desc "Regenerate lib/chef/version.rb from VERSION file"
66
- task :version => :update_components_versions do
67
- contents = <<-VERSION_RB
68
- # Copyright:: Copyright (c) 2010-2015 Chef Software, Inc.
69
- # License:: Apache License, Version 2.0
70
- #
71
- # Licensed under the Apache License, Version 2.0 (the "License");
72
- # you may not use this file except in compliance with the License.
73
- # You may obtain a copy of the License at
74
- #
75
- # http://www.apache.org/licenses/LICENSE-2.0
76
- #
77
- # Unless required by applicable law or agreed to in writing, software
78
- # distributed under the License is distributed on an "AS IS" BASIS,
79
- # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
80
- # See the License for the specific language governing permissions and
81
- # limitations under the License.
82
-
83
- #!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
84
- # NOTE: This file is generated by running `rake version` in the top level of
85
- # this repo. Do not edit this manually. Edit the VERSION file and run the rake
86
- # task instead.
87
- #!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
88
-
89
- class Chef
90
- CHEF_ROOT = File.dirname(File.expand_path(File.dirname(__FILE__)))
91
- VERSION = '#{VERSION}'
92
- end
93
-
94
- #
95
- # NOTE: the Chef::Version class is defined in version_class.rb
96
- #
97
- # NOTE: DO NOT Use the Chef::Version class on Chef::VERSIONs. The
98
- # Chef::Version class is for _cookbooks_ only, and cannot handle
99
- # pre-release chef-client versions like "10.14.0.rc.2". Please
100
- # use Rubygem's Gem::Version class instead.
101
- #
102
- VERSION_RB
103
- version_rb_path = File.expand_path("../lib/chef/version.rb", __FILE__)
104
- IO.write(version_rb_path, contents)
105
- end
106
-
107
- Dir[File.expand_path("../*gemspec", __FILE__)].reverse.each do |gemspec_path|
108
- gemspec = eval(IO.read(gemspec_path))
109
- Gem::PackageTask.new(gemspec).define
110
- end
111
-
112
- def with_clean_env(&block)
113
- if defined?(Bundler)
114
- Bundler.with_clean_env(&block)
115
- else
116
- block.call
117
- end
118
- end
119
-
120
- desc "Build and install a chef gem"
121
- task :install => [:package] do
122
- with_clean_env do
123
- sh %{gem install pkg/#{GEM_NAME}-#{VERSION}.gem --no-rdoc --no-ri}
124
- end
125
- end
126
-
127
- task :uninstall do
128
- sh %{gem uninstall #{GEM_NAME} -x -v #{VERSION} }
129
- end
130
-
131
- desc "Build it, tag it and ship it"
132
- task :ship => [:clobber_package, :gem] do
133
- sh("git tag #{VERSION}")
134
- sh("git push chef --tags")
135
- Dir[File.expand_path("../pkg/*.gem", __FILE__)].reverse.each do |built_gem|
136
- sh("gem push #{built_gem}")
137
- end
29
+ ChefConfig::PackageTask.new(File.expand_path('..', __FILE__), 'Chef') do |package|
30
+ package.component_paths = ['chef-config']
31
+ package.generate_version_class = true
138
32
  end
139
33
 
140
34
  task :pedant do
@@ -168,3 +62,4 @@ begin
168
62
  rescue LoadError
169
63
  puts "yard is not available. (sudo) gem install yard to generate yard documentation."
170
64
  end
65
+
@@ -5,12 +5,12 @@
5
5
  <html xmlns="http://www.w3.org/1999/xhtml">
6
6
  <head>
7
7
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
8
-
8
+
9
9
  <title>knife cookbook site &mdash; chef-client Man Pages</title>
10
-
10
+
11
11
  <link rel="stylesheet" href="_static/guide.css" type="text/css" />
12
12
  <link rel="stylesheet" href="_static/pygments.css" type="text/css" />
13
-
13
+
14
14
  <script type="text/javascript">
15
15
  var DOCUMENTATION_OPTIONS = {
16
16
  URL_ROOT: './',
@@ -32,13 +32,13 @@
32
32
  </div>
33
33
 
34
34
 
35
-
35
+
36
36
 
37
37
  <div class="document">
38
38
  <div class="documentwrapper">
39
39
 
40
40
  <div class="body">
41
-
41
+
42
42
  <div class="section" id="knife-cookbook-site">
43
43
  <h1>knife cookbook site<a class="headerlink" href="#knife-cookbook-site" title="Permalink to this headline">¶</a></h1>
44
44
  <p>The Cookbooks Site API is used to provide access to the cookbooks community hosted at <a class="reference external" href="https://supermarket.getchef.com/cookbooks">https://supermarket.getchef.com/cookbooks</a>. All of the cookbooks in the community are accessible through a RESTful API located at <a class="reference external" href="https://supermarket.getchef.com/api/v1/cookbooks">https://supermarket.getchef.com/api/v1/cookbooks</a> by using any of the supported endpoints. In most cases, using knife and the <strong>knife cookbook site</strong> sub-command (and any of its arguments) is the recommended method of interacting with these cookbooks, but in some cases, using the Cookbooks Site API directly may make sense.</p>
@@ -228,17 +228,17 @@ ant iis redmine
228
228
  </div>
229
229
  <p>to return something like:</p>
230
230
  <div class="highlight-bash"><div class="highlight"><pre>apache2:
231
- cookbook: http://cookbooks.opscode.com/api/v1/cookbooks/apache2
231
+ cookbook: https://supermarket.chef.io/api/v1/cookbooks/apache2
232
232
  cookbook_description: Installs and configures apache2 using Debian symlinks with helper definitions
233
233
  cookbook_maintainer: opscode
234
234
  cookbook_name: apache2
235
235
  instiki:
236
- cookbook: http://cookbooks.opscode.com/api/v1/cookbooks/instiki
236
+ cookbook: https://supermarket.chef.io/api/v1/cookbooks/instiki
237
237
  cookbook_description: Installs instiki, a Ruby on Rails wiki server under passenger+Apache2.
238
238
  cookbook_maintainer: jtimberman
239
239
  cookbook_name: instiki
240
240
  kickstart:
241
- cookbook: http://cookbooks.opscode.com/api/v1/cookbooks/kickstart
241
+ cookbook: https://supermarket.chef.io/api/v1/cookbooks/kickstart
242
242
  cookbook_description: Creates apache2 vhost and serves a kickstart file.
243
243
  cookbook_maintainer: opscode
244
244
  cookbook_name: kickstart
@@ -311,18 +311,18 @@ category: Networking
311
311
  created_at: 2009-10-25T23:51:07Z
312
312
  description: Installs and configures haproxy
313
313
  external_url:
314
- latest_version: http://cookbooks.opscode.com/api/v1/cookbooks/haproxy/versions/1_0_3
314
+ latest_version: https://supermarket.chef.io/api/v1/cookbooks/haproxy/versions/1_0_3
315
315
  maintainer: opscode
316
316
  name: haproxy
317
317
  updated_at: 2011-06-30T21:53:25Z
318
318
  versions:
319
- http://cookbooks.opscode.com/api/v1/cookbooks/haproxy/versions/1_0_3
320
- http://cookbooks.opscode.com/api/v1/cookbooks/haproxy/versions/1_0_2
321
- http://cookbooks.opscode.com/api/v1/cookbooks/haproxy/versions/1_0_1
322
- http://cookbooks.opscode.com/api/v1/cookbooks/haproxy/versions/1_0_0
323
- http://cookbooks.opscode.com/api/v1/cookbooks/haproxy/versions/0_8_1
324
- http://cookbooks.opscode.com/api/v1/cookbooks/haproxy/versions/0_8_0
325
- http://cookbooks.opscode.com/api/v1/cookbooks/haproxy/versions/0_7_0
319
+ https://supermarket.chef.io/api/v1/cookbooks/haproxy/versions/1_0_3
320
+ https://supermarket.chef.io/api/v1/cookbooks/haproxy/versions/1_0_2
321
+ https://supermarket.chef.io/api/v1/cookbooks/haproxy/versions/1_0_1
322
+ https://supermarket.chef.io/api/v1/cookbooks/haproxy/versions/1_0_0
323
+ https://supermarket.chef.io/api/v1/cookbooks/haproxy/versions/0_8_1
324
+ https://supermarket.chef.io/api/v1/cookbooks/haproxy/versions/0_8_0
325
+ https://supermarket.chef.io/api/v1/cookbooks/haproxy/versions/0_7_0
326
326
  </pre></div>
327
327
  </div>
328
328
  <p><strong>Show cookbook data as JSON</strong></p>
@@ -364,7 +364,7 @@ versions:
364
364
 
365
365
  </div>
366
366
 
367
-
367
+
368
368
  <div class="clearer"></div>
369
369
  </div>
370
370
 
@@ -372,4 +372,4 @@ versions:
372
372
 
373
373
 
374
374
  </body>
375
- </html>
375
+ </html>
@@ -364,17 +364,17 @@ to return something like:
364
364
  .nf
365
365
  .ft C
366
366
  apache2:
367
- cookbook: http://cookbooks.opscode.com/api/v1/cookbooks/apache2
367
+ cookbook: https://supermarket.chef.io/api/v1/cookbooks/apache2
368
368
  cookbook_description: Installs and configures apache2 using Debian symlinks with helper definitions
369
369
  cookbook_maintainer: opscode
370
370
  cookbook_name: apache2
371
371
  instiki:
372
- cookbook: http://cookbooks.opscode.com/api/v1/cookbooks/instiki
372
+ cookbook: https://supermarket.chef.io/api/v1/cookbooks/instiki
373
373
  cookbook_description: Installs instiki, a Ruby on Rails wiki server under passenger+Apache2.
374
374
  cookbook_maintainer: jtimberman
375
375
  cookbook_name: instiki
376
376
  kickstart:
377
- cookbook: http://cookbooks.opscode.com/api/v1/cookbooks/kickstart
377
+ cookbook: https://supermarket.chef.io/api/v1/cookbooks/kickstart
378
378
  cookbook_description: Creates apache2 vhost and serves a kickstart file.
379
379
  cookbook_maintainer: opscode
380
380
  cookbook_name: kickstart
@@ -481,18 +481,18 @@ category: Networking
481
481
  created_at: 2009\-10\-25T23:51:07Z
482
482
  description: Installs and configures haproxy
483
483
  external_url:
484
- latest_version: http://cookbooks.opscode.com/api/v1/cookbooks/haproxy/versions/1_0_3
484
+ latest_version: https://supermarket.chef.io/api/v1/cookbooks/haproxy/versions/1_0_3
485
485
  maintainer: opscode
486
486
  name: haproxy
487
487
  updated_at: 2011\-06\-30T21:53:25Z
488
488
  versions:
489
- http://cookbooks.opscode.com/api/v1/cookbooks/haproxy/versions/1_0_3
490
- http://cookbooks.opscode.com/api/v1/cookbooks/haproxy/versions/1_0_2
491
- http://cookbooks.opscode.com/api/v1/cookbooks/haproxy/versions/1_0_1
492
- http://cookbooks.opscode.com/api/v1/cookbooks/haproxy/versions/1_0_0
493
- http://cookbooks.opscode.com/api/v1/cookbooks/haproxy/versions/0_8_1
494
- http://cookbooks.opscode.com/api/v1/cookbooks/haproxy/versions/0_8_0
495
- http://cookbooks.opscode.com/api/v1/cookbooks/haproxy/versions/0_7_0
489
+ https://supermarket.chef.io/api/v1/cookbooks/haproxy/versions/1_0_3
490
+ https://supermarket.chef.io/api/v1/cookbooks/haproxy/versions/1_0_2
491
+ https://supermarket.chef.io/api/v1/cookbooks/haproxy/versions/1_0_1
492
+ https://supermarket.chef.io/api/v1/cookbooks/haproxy/versions/1_0_0
493
+ https://supermarket.chef.io/api/v1/cookbooks/haproxy/versions/0_8_1
494
+ https://supermarket.chef.io/api/v1/cookbooks/haproxy/versions/0_8_0
495
+ https://supermarket.chef.io/api/v1/cookbooks/haproxy/versions/0_7_0
496
496
  .ft P
497
497
  .fi
498
498
  .UNINDENT