diff options
author | Tim Smith <tsmith84@gmail.com> | 2020-08-19 12:56:35 -0700 |
---|---|---|
committer | Tim Smith <tsmith84@gmail.com> | 2020-08-19 12:56:35 -0700 |
commit | b0c7144e5136d7973861b2f096eb5eff5cd97294 (patch) | |
tree | 42c30bec8b9e4faba6d7124dae475ebdfd189aa4 /lib/chef/resources.rb | |
parent | 0f3f63d6f427368eb2d0193c4e363d8a6f7d6f9a (diff) | |
download | chef-client_trusted.tar.gz |
Add new chef_client_trusted_certificate resourceclient_trusted
This is a pretty simple resource for something that users can certainly do on their own right now, but most people don't even realize is an option. Giving it a dedicated resource exposes the functionality better and just makes it that much easier to write a simple cross platform cookbook that involves configuring the client.
I'm not a huge fan of having to provide the certificate as a string, but I didn't want to add yet another place where we allow string values, or URI. They all have slightly different APIs and we need to just do it via a mixin or something. This can certainly move that direction in the future, but for this solves a real problem today.
Signed-off-by: Tim Smith <tsmith@chef.io>
Diffstat (limited to 'lib/chef/resources.rb')
-rw-r--r-- | lib/chef/resources.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/chef/resources.rb b/lib/chef/resources.rb index a47b96cb5c..a3f23532b4 100644 --- a/lib/chef/resources.rb +++ b/lib/chef/resources.rb @@ -30,6 +30,7 @@ require_relative "resource/cookbook_file" require_relative "resource/chef_client_cron" require_relative "resource/chef_client_scheduled_task" require_relative "resource/chef_client_systemd_timer" +require_relative "resource/chef_client_trusted_certificate" require_relative "resource/chef_gem" require_relative "resource/chef_handler" require_relative "resource/chef_sleep" |