summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Smith <tsmith@chef.io>2018-08-27 11:14:32 -0700
committerTim Smith <tsmith@chef.io>2018-08-27 11:14:32 -0700
commit511ec1722c8a6ab88547220d20fe290f5c9d1f81 (patch)
tree9cb43320da67761cb6bb7d949e1fc13da1b9f95f
parentc1e1b0c3e35ab64f80a850d94e4d89b70baac39a (diff)
downloadchef-511ec1722c8a6ab88547220d20fe290f5c9d1f81.tar.gz
Be more explicit in disabling provides for openssl_x509
Make it clear that we want this to be "true" with Chef 15, but right now the cookbook needs to win for backwards compatibility reasons. Signed-off-by: Tim Smith <tsmith@chef.io>
-rw-r--r--lib/chef/resource/openssl_x509_certificate.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/chef/resource/openssl_x509_certificate.rb b/lib/chef/resource/openssl_x509_certificate.rb
index c5c73ea7a1..da8867a2a2 100644
--- a/lib/chef/resource/openssl_x509_certificate.rb
+++ b/lib/chef/resource/openssl_x509_certificate.rb
@@ -26,7 +26,7 @@ class Chef
preview_resource true
resource_name :openssl_x509_certificate
- provides(:openssl_x509) { false } # legacy cookbook name. Cookbook will win. @todo Make this true in Chef 15
+ # provides(:openssl_x509) { true } # legacy cookbook name. Cookbook will win for now. @todo Uncomment this for Chef 15
description "Use the openssl_x509_certificate resource to generate signed or self-signed, PEM-formatted x509 certificates. If no existing key is specified, the resource will automatically generate a passwordless key with the certificate. If a CA private key and certificate are provided, the certificate will be signed with them. Note: This resource was renamed from openssl_x509 to openssl_x509_certificate. The legacy name will continue to function, but cookbook code should be updated for the new resource name."
introduced "14.4"