On this page
DeprecatedSudoActions
The department is: Chef/Deprecations
The full name of the cop is: Chef/Deprecations/DeprecatedSudoActions
| Enabled by default | Supports autocorrection | Target Chef Version |
|---|---|---|
| Enabled | Yes | 14.0+ |
The sudo resource in the sudo cookbook 5.0 (2018) or Chef Infra Client 14 and later have replaced the existing :install and :remove actions with :create and :delete actions to better match other resources in Chef Infra.
Examples
incorrect
sudo 'admins' do
users 'bob'
groups 'sysadmins, superusers'
action :remove
end
correct
sudo 'admins' do
users 'bob'
groups 'sysadmins, superusers'
action :delete
end
Configurable attributes
| Name | Default value | Configurable values |
|---|---|---|
| Version Added | 7.18.0 | String |
| Exclude |
|
Array |
© 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/workstation/cookstyle/chef_deprecations_deprecatedsudoactions/