Skip to main content

Chef/Modernize/DependsOnOpensslCookbook

Cookstyle cops page

The Cookstyle cops department: Chef/Modernize

Enabled by defaultSupports autocorrectionTarget Chef Version
EnabledYes14.4+

Don’t depend on the openssl cookbook which was made obsolete by Chef Infra Client 14.4. All openssl_* resources are now included directly in Chef Infra Client.

Examples

# bad
depends 'openssl'

# good
# the openssl_* resources ship in Chef Infra Client 14.4+, so use them without a depends
openssl_x509_certificate '/etc/httpd/ssl/mycert.pem' do
  common_name 'www.example.com'
  org 'Example Inc'
  org_unit 'IT'
  country 'US'
end

Configurable attributes

NameDefault valueConfigurable values
Version Added7.20.0String
Include
  • **/metadata.rb
Array

Thank you for your feedback!

×