Skip to main content

Chef/Modernize/UseChefLanguageSystemdHelper

Cookstyle cops page

The Cookstyle cops department: Chef/Modernize

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

    Thank you for your feedback!

    ×










    Search Results