Skip to main content

CookbookUsesDatabags

All Cookstyle Cops


The department is: Chef/Effortless

The full name of the cop is: Chef/Effortless/CookbookUsesDatabags


Enabled by defaultSupports autocorrectionTarget Chef Version
Not EnabledNoAll Versions

Data bags cannot be used with the Effortless Infra pattern

Examples

incorrect

data_bag_item('admins', login)
data_bag(data_bag_name)

Configurable attributes

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

Was this page helpful?