Skip to main content

UseChefLanguageSystemdHelper

The department is: UseChefLanguageSystemdHelper

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

Enabled by defaultSupports autocorrectionTarget Chef Version
EnabledYes15.5+

Chef Infra Client 15.5 and later include a systemd? helper for checking if a Linux system uses systemd.

Examples

incorrect

node['init_package'] == 'systemd'

correct

systemd?

Configurable attributes

NameDefault valueConfigurable values
Version Added7.24.0String
Include
    Array

    Was this page helpful?

    ×









    Search Results