Skip to main content

Chef/Modernize/SysctlParamResource

Cookstyle cops page

The Cookstyle cops department: Chef/Modernize

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
Include
    Array

    Thank you for your feedback!

    ×









    Search Results