Chef/Modernize/DependsOnOpensslCookbook
The Cookstyle cops department: Chef/Modernize
| Enabled by default | Supports autocorrection | Target Chef Version |
|---|---|---|
| Enabled | Yes | 14.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
| Name | Default value | Configurable values |
|---|---|---|
| Version Added | 7.20.0 | String |
| Include |
| Array |