Skip to main content

SysctlParamResource

All Cookstyle Cops


The department is: Chef/Modernize

The full name of the cop is: Chef/Modernize/SysctlParamResource


Enabled by defaultSupports autocorrectionTarget Chef Version
EnabledYes14.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

NameDefault valueConfigurable values
Version Added5.6.0String
Exclude
  • **/metadata.rb
Array

Was this page helpful?