diff options
author | Tim Smith <tsmith84@gmail.com> | 2020-08-19 12:56:35 -0700 |
---|---|---|
committer | Tim Smith <tsmith84@gmail.com> | 2020-08-19 13:39:02 -0700 |
commit | 78ccdeaff047c1c8537a3dd686ba1f777858c1c5 (patch) | |
tree | 022589771d08844b1e0b3c7dffb82d18eccd152a /lib/chef/resources.rb | |
parent | 0f3f63d6f427368eb2d0193c4e363d8a6f7d6f9a (diff) | |
download | chef-78ccdeaff047c1c8537a3dd686ba1f777858c1c5.tar.gz |
Add new chef_client_trusted_certificate resource
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" |