Chef/Modernize/SysctlParamResource
The Cookstyle cops department: Chef/Modernize
Enabled by default | Supports autocorrection | Target Chef Version |
---|---|---|
Enabled | Yes | 14.0+ |
The sysctl_param resource was renamed to sysctl when it was added to Chef Infra Client 14.0. The new resource name should be used.
Examples
incorrect
sysctl_param 'fs.aio-max-nr' do
value '1048576'
end
correct
sysctl 'fs.aio-max-nr' do
value '1048576'
end
Configurable attributes
Name | Default value | Configurable values |
---|---|---|
Version Added | 5.6.0 | String |
Include | Array |