Deprecation: Supports metaproperty (CHEF-8)

[edit on GitHub]

The user resource previously allowed a cookbook author to set policy for the resource in two ways. The supports metaproperty, which is now deprecated, enabled the manage_home and non_unique properties to be set.

The supports metaproperty was deprecated in Chef Client 12.14 and will be removed in Chef Client 13.

Example

user 'betty' do
  supports({
    manage_home: true,
    non_unique: true,
  })
end

Remediation

Make the manage_home and non_unique settings properties rather than parts of the supports hash.

user 'betty' do
  manage_home true
  non_unique true
end

© Chef Software, Inc.
Licensed under the Creative Commons Attribution 3.0 Unported License.
The Chef™ Mark and Chef Logo are either registered trademarks/service marks or trademarks/servicemarks of Chef, in the United States and other countries and are used with Chef Inc's permission.
We are not affiliated with, endorsed or sponsored by Chef Inc.
https://docs.chef.io/deprecations_supports_property/