summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Smith <tsmith@chef.io>2018-08-27 10:56:04 -0700
committerGitHub <noreply@github.com>2018-08-27 10:56:04 -0700
commitf748edfd7d42fe11de6bbc2ded38da6e8b036087 (patch)
treea24118412325cbb41b4979210a2546635f24fde5
parent30cac217fc60d10118957717a6c3d7f2dcca33e8 (diff)
parentc1e1b0c3e35ab64f80a850d94e4d89b70baac39a (diff)
downloadchef-f748edfd7d42fe11de6bbc2ded38da6e8b036087.tar.gz
Merge pull request #7590 from chef/docs
openssl resources: Improve descriptions and fix provides for Chef 14.X
-rw-r--r--lib/chef/resource/openssl_dhparam.rb5
-rw-r--r--lib/chef/resource/openssl_ec_private_key.rb3
-rw-r--r--lib/chef/resource/openssl_ec_public_key.rb3
-rw-r--r--lib/chef/resource/openssl_x509_certificate.rb4
-rw-r--r--lib/chef/resource/openssl_x509_crl.rb4
-rw-r--r--lib/chef/resource/openssl_x509_request.rb2
6 files changed, 13 insertions, 8 deletions
diff --git a/lib/chef/resource/openssl_dhparam.rb b/lib/chef/resource/openssl_dhparam.rb
index a1fa3af7e4..ae6bc9ad77 100644
--- a/lib/chef/resource/openssl_dhparam.rb
+++ b/lib/chef/resource/openssl_dhparam.rb
@@ -26,10 +26,7 @@ class Chef
resource_name :openssl_dhparam
provides(:openssl_dhparam) { true }
- description "Use the openssl_dhparam resource to generate dhparam.pem files. If a"\
- " valid dhparam.pem file is found at the specified location, no new file"\
- " will be created. If a file is found at the specified location but it is"\
- " not a valid dhparam file, it will be overwritten."
+ description "Use the openssl_dhparam resource to generate dhparam.pem files. If a valid dhparam.pem file is found at the specified location, no new file will be created. If a file is found at the specified location but it is not a valid dhparam file, it will be overwritten."
introduced "14.0"
property :path, String,
diff --git a/lib/chef/resource/openssl_ec_private_key.rb b/lib/chef/resource/openssl_ec_private_key.rb
index 37dd61162f..3da4e79fc2 100644
--- a/lib/chef/resource/openssl_ec_private_key.rb
+++ b/lib/chef/resource/openssl_ec_private_key.rb
@@ -1,5 +1,6 @@
#
# Copyright:: Copyright 2018, Chef Software Inc.
+# Author:: Julien Huon
# License:: Apache License, Version 2.0
#
# Licensed under the Apache License, Version 2.0 (the "License");
@@ -26,7 +27,7 @@ class Chef
preview_resource true
resource_name :openssl_ec_private_key
- description "Use the openssl_ec_private_key resource to generate generate ec private key files. If a valid ec key file can be opened at the specified location, no new file will be created. If the EC key file cannot be opened, either because it does not exist or because the password to the EC key file does not match the password in the recipe, it will be overwritten."
+ description "Use the openssl_ec_private_key resource to generate generate elliptic curve (EC) private key files. If a valid EC key file can be opened at the specified location, no new file will be created. If the EC key file cannot be opened, either because it does not exist or because the password to the EC key file does not match the password in the recipe, it will be overwritten."
introduced "14.4"
property :path, String,
diff --git a/lib/chef/resource/openssl_ec_public_key.rb b/lib/chef/resource/openssl_ec_public_key.rb
index 50c3bd192c..50b1da337f 100644
--- a/lib/chef/resource/openssl_ec_public_key.rb
+++ b/lib/chef/resource/openssl_ec_public_key.rb
@@ -1,5 +1,6 @@
#
# Copyright:: Copyright 2018, Chef Software Inc.
+# Author:: Julien Huon
# License:: Apache License, Version 2.0
#
# Licensed under the Apache License, Version 2.0 (the "License");
@@ -26,7 +27,7 @@ class Chef
preview_resource true
resource_name :openssl_ec_public_key
- description "Use the openssl_ec_public_key resource to generate ec public key files given a private key."
+ description "Use the openssl_ec_public_key resource to generate elliptic curve (EC) public key files given a private key."
introduced "14.4"
property :path, String,
diff --git a/lib/chef/resource/openssl_x509_certificate.rb b/lib/chef/resource/openssl_x509_certificate.rb
index 00058f65d0..c5c73ea7a1 100644
--- a/lib/chef/resource/openssl_x509_certificate.rb
+++ b/lib/chef/resource/openssl_x509_certificate.rb
@@ -1,5 +1,7 @@
#
# License:: Apache License, Version 2.0
+# Author:: Julien Huon
+# Copyright:: Copyright 2018, Chef Software Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
@@ -24,7 +26,7 @@ class Chef
preview_resource true
resource_name :openssl_x509_certificate
- provides(:openssl_x509) { true } # legacy cookbook name. Cookbook will win. @todo Make this true in Chef 15
+ provides(:openssl_x509) { false } # legacy cookbook name. Cookbook will win. @todo Make this true in 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"
diff --git a/lib/chef/resource/openssl_x509_crl.rb b/lib/chef/resource/openssl_x509_crl.rb
index 06c591ac18..7ae5c0c5af 100644
--- a/lib/chef/resource/openssl_x509_crl.rb
+++ b/lib/chef/resource/openssl_x509_crl.rb
@@ -1,5 +1,7 @@
#
# License:: Apache License, Version 2.0
+# Author:: Julien Huon
+# Copyright:: Copyright 2018, Chef Software Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
@@ -25,7 +27,7 @@ class Chef
preview_resource true
resource_name :openssl_x509_crl
- description "Use the openssl_x509_crl resource to generate PEM-formatted x509 CRL files."
+ description "Use the openssl_x509_crl resource to generate PEM-formatted x509 certificate revocation list (CRL) files."
introduced "14.4"
property :path, String,
diff --git a/lib/chef/resource/openssl_x509_request.rb b/lib/chef/resource/openssl_x509_request.rb
index 071978a961..ae1be2cfa5 100644
--- a/lib/chef/resource/openssl_x509_request.rb
+++ b/lib/chef/resource/openssl_x509_request.rb
@@ -1,5 +1,7 @@
#
# License:: Apache License, Version 2.0
+# Author:: Julien Huon
+# Copyright:: Copyright 2018, Chef Software Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.