Ohai Chefs,
Today we are releasing 10.30.2 & 11.8.2 of Chef Client as well as 1.3.0 of mixlib-shellout.
Release highlights for 10.30.2 & 11.8.2:
Big thanks to James Ogden for reporting the security issue and Phil Dibowitz, our first external committer to Chef for contributing whyrun_safe_ruby_block and with his help on validating 10.30.2 release.
In addition to these, 10.30.2 also includes:
In 10.30.2 Chef fixes the problems around using to_hash() method on node attributes .
Before 10.30.2, Chef used to merge the values of array attributes coming from different precedence levels. In this release Chef makes sure that the values from the higher precedence levels override the values from the lower precedence levels. This is also the behavior of Chef 11.x versions.
Eg: If node had a default value of [“foo”, “bar”] and an override value of [“zoo”, “bar”] for an attribute:
NOTE: We don’t expect this to be a breaking change for you. But if this breaks your cookbooks you can set the below configuration in your client.rb to restore the old behavior:
[sourcecode language=”ruby”]
Chef::Config[:deep_merge_array_concat] = false
[/sourcecode]
:excluded_members property on group resource, takes an array of user accounts and make sure that the group doesn’t contain any of the specified members after convergence. It is useful if you would like to remove certain accounts from your groups.
Note that it is only applicable while running :manage and :modify actions for a group resource and only for resources on which :append is set.
10.30.2 introduces a new resource called whyrun_safe_ruby_block which is similar to the ruby_block resource but also gets executed during why-run mode.
Here is a list of other issues that are fixed in 10.30.2:
10.30.2 also includes mixlib-shellout version 1.3.0. This version of mixlib-shellout is updated to clean the system by terminating the processes which do not complete in the specified :timeout. You can read more about this change here.
You can get the omnibus packages for new Chef releases using:
[sourcecode language=”bash”]
curl -L "https://www.opscode.com/chef/install.sh" | sudo bash -s — -v 10.30.2
curl -L "https://www.opscode.com/chef/install.sh" | sudo bash -s — -v 11.8.2
[/sourcecode]
Let us know if you experience any issues for these releases.