Chef/Modernize/DependsOnLocaleCookbook
The Cookstyle cops department: Chef/Modernize
| Enabled by default | Supports autocorrection | Target Chef Version |
|---|---|---|
| Enabled | Yes | 14.5+ |
Don’t depend on the locale cookbook made obsolete by Chef Infra Client 14.5. The locale resource is now included in Chef Infra Client itself.
Examples
# bad
depends 'locale'
# good
# the resource ships in Chef Infra Client 14.5+, so use it without a depends
locale 'set locale' do
lang 'en_us.UTF-8'
end
Configurable attributes
| Name | Default value | Configurable values |
|---|---|---|
| Version Added | 7.19.0 | String |
| Include |
| Array |