diff options
author | Phil Dibowitz <phil@ipom.com> | 2015-01-15 14:35:36 -0800 |
---|---|---|
committer | Phil Dibowitz <phil@ipom.com> | 2015-01-15 14:40:55 -0800 |
commit | 7e09fa58fc039d5aabdb4f041c03668797479093 (patch) | |
tree | 90481a29fc0fb154c4df252ebe75077c8acaf416 /lib | |
parent | b9e91171f6bd4ac55d62c6b9b72838fa89a1330e (diff) | |
download | chef-7e09fa58fc039d5aabdb4f041c03668797479093.tar.gz |
Suppress SSL warnings if I know what I'm doing
Diffstat (limited to 'lib')
-rw-r--r-- | lib/chef/client.rb | 2 | ||||
-rw-r--r-- | lib/chef/config.rb | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/lib/chef/client.rb b/lib/chef/client.rb index 77f63671d7..9fe45b77df 100644 --- a/lib/chef/client.rb +++ b/lib/chef/client.rb @@ -530,7 +530,7 @@ class Chef end def check_ssl_config - if Chef::Config[:ssl_verify_mode] == :verify_none and !Chef::Config[:verify_api_cert] + if Chef::Config[:ssl_verify_mode] == :verify_none and !Chef::Config[:verify_api_cert] and !Chef::Config[:suppress_ssl_warnings] Chef::Log.warn(<<-WARN) * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * diff --git a/lib/chef/config.rb b/lib/chef/config.rb index 453a8f83da..f65b9a010f 100644 --- a/lib/chef/config.rb +++ b/lib/chef/config.rb @@ -352,6 +352,8 @@ class Chef # be validated. default :ssl_verify_mode, :verify_peer + default :suppress_ssl_warnings, false + # Whether or not to verify the SSL cert for HTTPS requests to the Chef # server API. If set to `true`, the server's cert will be validated # regardless of the :ssl_verify_mode setting. This is set to `true` when |