diff options
author | Bryan McLellan <btm@loftninjas.org> | 2014-12-22 12:14:28 -0500 |
---|---|---|
committer | Bryan McLellan <btm@loftninjas.org> | 2014-12-22 12:14:28 -0500 |
commit | 74209628d7ae0cf6bb0b9094f699a0ed575edf69 (patch) | |
tree | 51d78a2ac007be9cbf2b9b26136780b50af7d56f | |
parent | 8b37ebb3468879477fbeeba9511c10a00d530b97 (diff) | |
download | chef-74209628d7ae0cf6bb0b9094f699a0ed575edf69.tar.gz |
Add comments to trusted_certs_contentbtm/trusted_certs_dir_comments
It's initially confusing why #trusted_certs has commands embedded in the certificates.
I've added comments to try to reduce that confusion for the next person.
-rw-r--r-- | lib/chef/knife/core/bootstrap_context.rb | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/chef/knife/core/bootstrap_context.rb b/lib/chef/knife/core/bootstrap_context.rb index f7fee023de..60db34c8d0 100644 --- a/lib/chef/knife/core/bootstrap_context.rb +++ b/lib/chef/knife/core/bootstrap_context.rb @@ -49,6 +49,8 @@ class Chef @secret end + # Contains commands and content, see trusted_certs_content + # TODO: Rename to trusted_certs_script def trusted_certs @trusted_certs ||= trusted_certs_content end @@ -159,6 +161,9 @@ CONFIG end private + + # Returns a string for copying the trusted certificates on the workstation to the system being bootstrapped + # This string should contain both the commands necessary to both create the files, as well as their content def trusted_certs_content content = "" if @chef_config[:trusted_certs_dir] |