diff options
author | Tim Smith <tsmith84@gmail.com> | 2020-09-15 19:53:17 -0700 |
---|---|---|
committer | Tim Smith <tsmith84@gmail.com> | 2020-09-15 19:53:17 -0700 |
commit | 218d7b97119ceb7f3f92a6bd183030d4f6faffc2 (patch) | |
tree | e893b2333435fbeda9622711cbf67414765282b5 | |
parent | abe00d4f224675c795f41b9d9fa88299b4ef0cdd (diff) | |
download | chef-218d7b97119ceb7f3f92a6bd183030d4f6faffc2.tar.gz |
Make sure we document our lazy defaults
Signed-off-by: Tim Smith <tsmith@chef.io>
-rw-r--r-- | lib/chef/resource/openssl_ec_private_key.rb | 1 | ||||
-rw-r--r-- | lib/chef/resource/openssl_rsa_private_key.rb | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/lib/chef/resource/openssl_ec_private_key.rb b/lib/chef/resource/openssl_ec_private_key.rb index 26f28b1ad8..7625b5ea6e 100644 --- a/lib/chef/resource/openssl_ec_private_key.rb +++ b/lib/chef/resource/openssl_ec_private_key.rb @@ -68,6 +68,7 @@ class Chef property :key_cipher, String, description: "The designed cipher to use when generating your key. Run `openssl list-cipher-algorithms` to see available options.", default: lazy { "des3" }, + default_description: "des3", callbacks: { "key_cipher must be a cipher known to openssl. Run `openssl list-cipher-algorithms` to see available options." => proc { |v| OpenSSL::Cipher.ciphers.include?(v) }, diff --git a/lib/chef/resource/openssl_rsa_private_key.rb b/lib/chef/resource/openssl_rsa_private_key.rb index 381e2af696..e9e6ef24ca 100644 --- a/lib/chef/resource/openssl_rsa_private_key.rb +++ b/lib/chef/resource/openssl_rsa_private_key.rb @@ -67,6 +67,7 @@ class Chef property :key_cipher, String, description: "The designed cipher to use when generating your key. Run `openssl list-cipher-algorithms` to see available options.", default: lazy { "des3" }, + default_description: "des3", callbacks: { "key_cipher must be a cipher known to openssl. Run `openssl list-cipher-algorithms` to see available options." => proc { |v| OpenSSL::Cipher.ciphers.include?(v) }, |