Skip to main content

UseChefLanguageSystemdHelper

The department is: UseChefLanguageSystemdHelper

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

Enabled by default Supports autocorrection Target Chef Version
Enabled Yes 15.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

Name Default value Configurable values
Version Added 7.24.0 String
Include
Array

Was this page helpful?

×









Search Results