diff options
author | Claire McQuin <claire@getchef.com> | 2014-08-22 11:12:10 -0700 |
---|---|---|
committer | Serdar Sutay <serdar@opscode.com> | 2014-08-26 15:49:51 -0700 |
commit | 3812f7cb6b267014c4057cd6787b7fc2011ef816 (patch) | |
tree | aa243d522421364716df0da0bc020cedf6907668 /lib/chef/knife/core | |
parent | de8e2612785c1f9f4bdd05787dcc47d55ef348c6 (diff) | |
download | chef-3812f7cb6b267014c4057cd6787b7fc2011ef816.tar.gz |
Add --ssl-verify-mode and --[no-]verify-api-cert options.
Diffstat (limited to 'lib/chef/knife/core')
-rw-r--r-- | lib/chef/knife/core/bootstrap_context.rb | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/chef/knife/core/bootstrap_context.rb b/lib/chef/knife/core/bootstrap_context.rb index 0fdd77594a..831a214e66 100644 --- a/lib/chef/knife/core/bootstrap_context.rb +++ b/lib/chef/knife/core/bootstrap_context.rb @@ -64,6 +64,14 @@ CONFIG client_rb << "# Using default node name (fqdn)\n" end + unless @config[:verify_api_cert].nil? + client_rb << %Q{verify_api_cert #{@config[:verify_api_cert]}\n} + end + + if knife_config[:ssl_verify_mode] + client_rb << %Q{ssl_verify_mode :#{knife_config[:ssl_verify_mode]}\n} + end + if knife_config[:bootstrap_proxy] client_rb << %Q{http_proxy "#{knife_config[:bootstrap_proxy]}"\n} client_rb << %Q{https_proxy "#{knife_config[:bootstrap_proxy]}"\n} |