diff options
-rw-r--r-- | CHANGELOG.md | 26 | ||||
-rw-r--r-- | Dockerfile | 2 | ||||
-rw-r--r-- | Gemfile.lock | 22 | ||||
-rw-r--r-- | VERSION | 2 | ||||
-rw-r--r-- | chef-bin/lib/chef-bin/version.rb | 2 | ||||
-rw-r--r-- | chef-config/lib/chef-config/version.rb | 2 | ||||
-rw-r--r-- | chef-utils/lib/chef-utils/version.rb | 2 | ||||
-rw-r--r-- | docs/dev/how_to/bumping_the_major_version.md | 12 | ||||
-rw-r--r-- | lib/chef/knife/core/windows_bootstrap_context.rb | 2 | ||||
-rw-r--r-- | lib/chef/resource/chef_gem.rb | 4 | ||||
-rw-r--r-- | lib/chef/resource/file.rb | 2 | ||||
-rw-r--r-- | lib/chef/resource/gem_package.rb | 4 | ||||
-rw-r--r-- | lib/chef/resource/http_request.rb | 2 | ||||
-rw-r--r-- | lib/chef/resource/mdadm.rb | 4 | ||||
-rw-r--r-- | lib/chef/resource/osx_profile.rb | 14 | ||||
-rw-r--r-- | lib/chef/resource/remote_directory.rb | 2 | ||||
-rw-r--r-- | lib/chef/resource/ruby.rb | 6 | ||||
-rw-r--r-- | lib/chef/resource/ruby_block.rb | 2 | ||||
-rw-r--r-- | lib/chef/version.rb | 2 | ||||
-rw-r--r-- | spec/unit/mixin/openssl_helper_spec.rb | 7 | ||||
-rwxr-xr-x | tasks/docs.rb | 2 |
21 files changed, 60 insertions, 63 deletions
diff --git a/CHANGELOG.md b/CHANGELOG.md index 3817b7ebc1..216cb49b1c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,23 +1,30 @@ <!-- usage documentation: http://expeditor-docs.es.chef.io/configuration/changelog/ --> -<!-- latest_release 16.8.14 --> -## [v16.8.14](https://github.com/chef/chef/tree/v16.8.14) (2020-12-11) +<!-- latest_release 16.8.16 --> +## [v16.8.16](https://github.com/chef/chef/tree/v16.8.16) (2020-12-16) #### Merged Pull Requests -- Fix broken code in compliance runner's send_report. [#10733](https://github.com/chef/chef/pull/10733) ([phiggins](https://github.com/phiggins)) +- Improve our automated resource documentation generation [#10739](https://github.com/chef/chef/pull/10739) ([tas50](https://github.com/tas50)) <!-- latest_release --> -<!-- release_rollup since=16.8.9 --> +<!-- release_rollup since=16.8.14 --> ### Changes not yet released to stable #### Merged Pull Requests -- Fix broken code in compliance runner's send_report. [#10733](https://github.com/chef/chef/pull/10733) ([phiggins](https://github.com/phiggins)) <!-- 16.8.14 --> -- Raise error and retry with PTY on sudo password prompt [#10728](https://github.com/chef/chef/pull/10728) ([rveznaver](https://github.com/rveznaver)) <!-- 16.8.13 --> -- Update libiconv to 1.16 [#10731](https://github.com/chef/chef/pull/10731) ([tas50](https://github.com/tas50)) <!-- 16.8.12 --> -- Update openSSL to 1.0.2x [#10732](https://github.com/chef/chef/pull/10732) ([tas50](https://github.com/tas50)) <!-- 16.8.11 --> -- Bump libarchive to 3.5.0 [#10730](https://github.com/chef/chef/pull/10730) ([tas50](https://github.com/tas50)) <!-- 16.8.10 --> +- Improve our automated resource documentation generation [#10739](https://github.com/chef/chef/pull/10739) ([tas50](https://github.com/tas50)) <!-- 16.8.16 --> +- knife bootstrap: Windows Trusted cert path slashes fix [#10740](https://github.com/chef/chef/pull/10740) ([axelrtgs](https://github.com/axelrtgs)) <!-- 16.8.15 --> <!-- release_rollup --> <!-- latest_stable_release --> +## [v16.8.14](https://github.com/chef/chef/tree/v16.8.14) (2020-12-12) + +#### Merged Pull Requests +- Bump libarchive to 3.5.0 [#10730](https://github.com/chef/chef/pull/10730) ([tas50](https://github.com/tas50)) +- Update openSSL to 1.0.2x [#10732](https://github.com/chef/chef/pull/10732) ([tas50](https://github.com/tas50)) +- Update libiconv to 1.16 [#10731](https://github.com/chef/chef/pull/10731) ([tas50](https://github.com/tas50)) +- Raise error and retry with PTY on sudo password prompt [#10728](https://github.com/chef/chef/pull/10728) ([rveznaver](https://github.com/rveznaver)) +- Fix broken code in compliance runner's send_report. [#10733](https://github.com/chef/chef/pull/10733) ([phiggins](https://github.com/phiggins)) +<!-- latest_stable_release --> + ## [v16.8.9](https://github.com/chef/chef/tree/v16.8.9) (2020-12-11) #### Merged Pull Requests @@ -43,7 +50,6 @@ - Fix failing tests on Solaris / Enable Solaris builds again [#10719](https://github.com/chef/chef/pull/10719) ([mwrock](https://github.com/mwrock)) - hostname: Avoid erroring out when hostname is not set on mac [#10724](https://github.com/chef/chef/pull/10724) ([lamont-granquist](https://github.com/lamont-granquist)) - Update to InSpec 4.24 [#10726](https://github.com/chef/chef/pull/10726) ([tas50](https://github.com/tas50)) -<!-- latest_stable_release --> ## [v16.7.61](https://github.com/chef/chef/tree/v16.7.61) (2020-11-26) diff --git a/Dockerfile b/Dockerfile index a1df2033f8..ae06e5ba0a 100644 --- a/Dockerfile +++ b/Dockerfile @@ -18,7 +18,7 @@ FROM busybox LABEL maintainer="Chef Software, Inc. <docker@chef.io>" ARG CHANNEL=stable -ARG VERSION=16.8.9 +ARG VERSION=16.8.14 RUN wget "http://packages.chef.io/files/${CHANNEL}/chef/${VERSION}/el/7/chef-${VERSION}-1.el7.x86_64.rpm" -O /tmp/chef-client.rpm && \ rpm2cpio /tmp/chef-client.rpm | cpio -idmv && \ diff --git a/Gemfile.lock b/Gemfile.lock index eaebdd118b..47b19866c1 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -28,12 +28,12 @@ GIT PATH remote: . specs: - chef (16.8.14) + chef (16.8.16) addressable bcrypt_pbkdf (= 1.1.0.rc1) bundler (>= 1.10) - chef-config (= 16.8.14) - chef-utils (= 16.8.14) + chef-config (= 16.8.16) + chef-utils (= 16.8.16) chef-vault chef-zero (>= 14.0.11) diff-lcs (>= 1.2.4, < 1.4.0) @@ -65,12 +65,12 @@ PATH tty-screen (~> 0.6) tty-table (~> 0.11) uuidtools (~> 2.1.5) - chef (16.8.14-universal-mingw32) + chef (16.8.16-universal-mingw32) addressable bcrypt_pbkdf (= 1.1.0.rc1) bundler (>= 1.10) - chef-config (= 16.8.14) - chef-utils (= 16.8.14) + chef-config (= 16.8.16) + chef-utils (= 16.8.16) chef-vault chef-zero (>= 14.0.11) diff-lcs (>= 1.2.4, < 1.4.0) @@ -117,15 +117,15 @@ PATH PATH remote: chef-bin specs: - chef-bin (16.8.14) - chef (= 16.8.14) + chef-bin (16.8.16) + chef (= 16.8.16) PATH remote: chef-config specs: - chef-config (16.8.14) + chef-config (16.8.16) addressable - chef-utils (= 16.8.14) + chef-utils (= 16.8.16) fuzzyurl mixlib-config (>= 2.2.12, < 4.0) mixlib-shellout (>= 2.0, < 4.0) @@ -134,7 +134,7 @@ PATH PATH remote: chef-utils specs: - chef-utils (16.8.14) + chef-utils (16.8.16) GEM remote: https://rubygems.org/ @@ -1 +1 @@ -16.8.14
\ No newline at end of file +16.8.16
\ No newline at end of file diff --git a/chef-bin/lib/chef-bin/version.rb b/chef-bin/lib/chef-bin/version.rb index f726a9b06b..faf54342e8 100644 --- a/chef-bin/lib/chef-bin/version.rb +++ b/chef-bin/lib/chef-bin/version.rb @@ -21,7 +21,7 @@ module ChefBin CHEFBIN_ROOT = File.expand_path("..", __dir__) - VERSION = "16.8.14".freeze + VERSION = "16.8.16".freeze end # diff --git a/chef-config/lib/chef-config/version.rb b/chef-config/lib/chef-config/version.rb index 58434a2d38..80a2030452 100644 --- a/chef-config/lib/chef-config/version.rb +++ b/chef-config/lib/chef-config/version.rb @@ -15,5 +15,5 @@ module ChefConfig CHEFCONFIG_ROOT = File.expand_path("..", __dir__) - VERSION = "16.8.14".freeze + VERSION = "16.8.16".freeze end diff --git a/chef-utils/lib/chef-utils/version.rb b/chef-utils/lib/chef-utils/version.rb index 8b71afa3c6..5b1174ca33 100644 --- a/chef-utils/lib/chef-utils/version.rb +++ b/chef-utils/lib/chef-utils/version.rb @@ -16,5 +16,5 @@ module ChefUtils CHEFUTILS_ROOT = File.expand_path("..", __dir__) - VERSION = "16.8.14" + VERSION = "16.8.16" end diff --git a/docs/dev/how_to/bumping_the_major_version.md b/docs/dev/how_to/bumping_the_major_version.md index ff93f5bcf6..b34e7b0a2c 100644 --- a/docs/dev/how_to/bumping_the_major_version.md +++ b/docs/dev/how_to/bumping_the_major_version.md @@ -8,18 +8,20 @@ Chef consumes Ohai from GitHub as both a runtime dependency and a testing depend ### Create a new stable branch of Ohai -On your local machine fork the current master branch to a new stable branch. For example: `git checkout -b 15-stable`. You'll then want to edit the Expeditor config.yml file to update the branch configs like this: +1. Edit the Expeditor config for the new branch, which you'll create shortly: -https://github.com/chef/ohai/commit/ad208165619425dd7886b2de3f168b49ded25146 + - Example config change commit: https://github.com/chef/ohai/commit/1ad8c5946606a7f08ffb841e3682ae2d4991077f -With the expeditor config complete push the branch `git push --set-upstream origin 15-stable` +2. On your local machine fork the current master branch to a new stable branch. For example: `git checkout -b 16-stable`. + +3. Push the branch `git push --set-upstream origin 16-stable` ### Bump Ohai master to the new major version -Create a PR which: +Starting from the master branch create a PR which: - Edits the `VERSION` file in the root of the repository to the new major release -- Updates the `chef-config` dependency to allow for the new major release of Chef Infra in `ohai.gemspec` +- Updates the `chef-config` and `chef-utils` dependencies to allow for the new major release of Chef Infra in `ohai.gemspec` ## Fork Chef master to a stable branch diff --git a/lib/chef/knife/core/windows_bootstrap_context.rb b/lib/chef/knife/core/windows_bootstrap_context.rb index 4b40d5bfb9..fa8b43f383 100644 --- a/lib/chef/knife/core/windows_bootstrap_context.rb +++ b/lib/chef/knife/core/windows_bootstrap_context.rb @@ -140,7 +140,7 @@ class Chef end unless trusted_certs_script.empty? - client_rb << %Q{trusted_certs_dir "#{ChefConfig::Config.etc_chef_dir(windows: true)}/trusted_certs"\n} + client_rb << %Q{trusted_certs_dir "#{ChefConfig::PathHelper.escapepath(ChefConfig::Config.etc_chef_dir(windows: true))}\\\\trusted_certs"\n} end if chef_config[:fips] diff --git a/lib/chef/resource/chef_gem.rb b/lib/chef/resource/chef_gem.rb index fc23555cbd..2c5b342bce 100644 --- a/lib/chef/resource/chef_gem.rb +++ b/lib/chef/resource/chef_gem.rb @@ -49,7 +49,7 @@ class Chef To install a gem while #{ChefUtils::Dist::Infra::PRODUCT} is configuring the node (the converge phase), set the `compile_time` property to `false`: ```ruby - chef_gem 'right_aws' do + chef_gem 'loofah' do compile_time false action :install end @@ -57,7 +57,7 @@ class Chef To install a gem while the resource collection is being built (the compile phase), set the `compile_time` property to `true`: ```ruby - chef_gem 'right_aws' do + chef_gem 'loofah' do compile_time true action :install end diff --git a/lib/chef/resource/file.rb b/lib/chef/resource/file.rb index 214f8018ab..b2bba06185 100644 --- a/lib/chef/resource/file.rb +++ b/lib/chef/resource/file.rb @@ -32,7 +32,7 @@ class Chef provides :file - description "Use the **file** resource to manage files directly on a node." + description "Use the **file** resource to manage files directly on a node. Note: Use the **cookbook_file** resource to copy a file from a cookbook's `/files` directory. Use the **template** resource to create a file based on a template in a cookbook's `/templates` directory. And use the **remote_file** resource to transfer a file to a node from a remote location." if ChefUtils.windows? # Use Windows rights instead of standard *nix permissions diff --git a/lib/chef/resource/gem_package.rb b/lib/chef/resource/gem_package.rb index c893e7a2f9..a3ad5f614b 100644 --- a/lib/chef/resource/gem_package.rb +++ b/lib/chef/resource/gem_package.rb @@ -44,8 +44,8 @@ class Chef **Install a gem file from the local file system** ```ruby - gem_package 'right_aws' do - source '/tmp/right_aws-1.11.0.gem' + gem_package 'loofah' do + source '/tmp/loofah-2.7.0.gem' action :install end ``` diff --git a/lib/chef/resource/http_request.rb b/lib/chef/resource/http_request.rb index de714ab4ab..f53d3e731f 100644 --- a/lib/chef/resource/http_request.rb +++ b/lib/chef/resource/http_request.rb @@ -26,7 +26,7 @@ class Chef provides :http_request - description "Use the **http_request** resource to send an HTTP request (GET, PUT, POST, DELETE, HEAD, or OPTIONS) with an arbitrary message. This resource is often useful when custom callbacks are necessary." + description "Use the **http_request** resource to send an HTTP request (`GET`, `PUT`, `POST`, `DELETE`, `HEAD`, or `OPTIONS`) with an arbitrary message. This resource is often useful when custom callbacks are necessary." default_action :get allowed_actions :get, :patch, :put, :post, :delete, :head, :options diff --git a/lib/chef/resource/mdadm.rb b/lib/chef/resource/mdadm.rb index 7c1d066488..f2e610c1cf 100644 --- a/lib/chef/resource/mdadm.rb +++ b/lib/chef/resource/mdadm.rb @@ -36,7 +36,7 @@ class Chef property :chunk, Integer, default: 16, - description: "The chunk size. This property should not be used for a RAID 1 mirrored pair (i.e. when the level property is set to 1)." + description: "The chunk size. This property should not be used for a RAID 1 mirrored pair (i.e. when the `level` property is set to `1`)." property :devices, Array, default: lazy { [] }, @@ -63,7 +63,7 @@ class Chef description: "An optional property to specify the name of the RAID device if it differs from the resource block's name." property :layout, String, - description: "The RAID5 parity algorithm. Possible values: left-asymmetric (or la), left-symmetric (or ls), right-asymmetric (or ra), or right-symmetric (or rs)." + description: "The RAID5 parity algorithm. Possible values: `left-asymmetric` (or `la`), `left-symmetric` (or ls), `right-asymmetric` (or `ra`), or `right-symmetric` (or `rs`)." action_class do def load_current_resource diff --git a/lib/chef/resource/osx_profile.rb b/lib/chef/resource/osx_profile.rb index 6c0028301d..491f30be43 100644 --- a/lib/chef/resource/osx_profile.rb +++ b/lib/chef/resource/osx_profile.rb @@ -65,13 +65,13 @@ class Chef { 'mcx_preference_settings' => { 'idleTime' => 0, - } - } - ] - } - } - } - ] + }, + }, + ], + }, + }, + }, + ], } osx_profile 'Install screensaver profile' do diff --git a/lib/chef/resource/remote_directory.rb b/lib/chef/resource/remote_directory.rb index b6dc0b7a98..b87fe8c085 100644 --- a/lib/chef/resource/remote_directory.rb +++ b/lib/chef/resource/remote_directory.rb @@ -29,7 +29,7 @@ class Chef provides :remote_directory - description "Use the **remote_directory** resource to incrementally transfer a directory from a cookbook to a node. The director that is copied from the cookbook should be located under COOKBOOK_NAME/files/default/REMOTE_DIRECTORY. The remote_directory resource will obey file specificity." + description "Use the **remote_directory** resource to incrementally transfer a directory from a cookbook to a node. The directory that is copied from the cookbook should be located under `COOKBOOK_NAME/files/default/REMOTE_DIRECTORY`. The `remote_directory` resource will obey file specificity." default_action :create allowed_actions :create, :create_if_missing, :delete diff --git a/lib/chef/resource/ruby.rb b/lib/chef/resource/ruby.rb index a9f3ae24fd..2c0e65e9da 100644 --- a/lib/chef/resource/ruby.rb +++ b/lib/chef/resource/ruby.rb @@ -25,11 +25,7 @@ class Chef provides :ruby - description "Use the **ruby** resource to execute scripts using the Ruby interpreter. This"\ - " resource may also use any of the actions and properties that are available"\ - " to the **execute** resource. Commands that are executed with this resource are (by"\ - " their nature) not idempotent, as they are typically unique to the environment"\ - " in which they are run. Use `not_if` and `only_if` to guard this resource for idempotence." + description "Use the **ruby** resource to execute scripts using the Ruby interpreter. This resource may also use any of the actions and properties that are available to the **execute** resource. Commands that are executed with this resource are (by their nature) not idempotent, as they are typically unique to the environment in which they are run. Use `not_if` and `only_if` to guard this resource for idempotence." def initialize(name, run_context = nil) super diff --git a/lib/chef/resource/ruby_block.rb b/lib/chef/resource/ruby_block.rb index 427c3e25da..2d7d2fe8b6 100644 --- a/lib/chef/resource/ruby_block.rb +++ b/lib/chef/resource/ruby_block.rb @@ -28,7 +28,7 @@ class Chef provides :ruby_block, target_mode: true - description "Use the **ruby_block** resource to execute Ruby code during a #{ChefUtils::Dist::Infra::PRODUCT} run. Ruby code in the ruby_block resource is evaluated with other resources during convergence, whereas Ruby code outside of a ruby_block resource is evaluated before other resources, as the recipe is compiled." + description "Use the **ruby_block** resource to execute Ruby code during a #{ChefUtils::Dist::Infra::PRODUCT} run. Ruby code in the `ruby_block` resource is evaluated with other resources during convergence, whereas Ruby code outside of a `ruby_block` resource is evaluated before other resources, as the recipe is compiled." default_action :run allowed_actions :create, :run diff --git a/lib/chef/version.rb b/lib/chef/version.rb index f61748d3ae..115502d76c 100644 --- a/lib/chef/version.rb +++ b/lib/chef/version.rb @@ -23,7 +23,7 @@ require_relative "version_string" class Chef CHEF_ROOT = File.expand_path("..", __dir__) - VERSION = Chef::VersionString.new("16.8.14") + VERSION = Chef::VersionString.new("16.8.16") end # diff --git a/spec/unit/mixin/openssl_helper_spec.rb b/spec/unit/mixin/openssl_helper_spec.rb index 7c12037798..7766e8f9b2 100644 --- a/spec/unit/mixin/openssl_helper_spec.rb +++ b/spec/unit/mixin/openssl_helper_spec.rb @@ -21,13 +21,6 @@ describe Chef::Mixin::OpenSSLHelper do Class.new { include Chef::Mixin::OpenSSLHelper }.new end - describe ".included" do - it "requires openssl" do - instance - expect(defined?(OpenSSL)).to_not be(false) - end - end - # Path helpers describe "#get_key_filename" do context "When the input is not a string" do diff --git a/tasks/docs.rb b/tasks/docs.rb index efb0d5420f..b815988b8b 100755 --- a/tasks/docs.rb +++ b/tasks/docs.rb @@ -246,7 +246,7 @@ namespace :docs_site do end # if we're on a package resource, depending on the OS we want to inject a warning / note that you can just use 'package' instead - description << { "notes_resource_based_on_package" => true } if %w{apt_package bff_package dnf_package homebrew_package ips_package openbsd_package pacman_package portage_package smartos_package windows_package yum_package zypper_package}.include?(name) + description << { "notes_resource_based_on_package" => true } if %w{apt_package bff_package dnf_package homebrew_package ips_package openbsd_package pacman_package portage_package smartos_package windows_package yum_package zypper_package pacman_package freebsd_package}.include?(name) description end |