summaryrefslogtreecommitdiff
path: root/lib/chef/knife
diff options
context:
space:
mode:
authorVivek Kumar Singh <44496937+vsingh-msys@users.noreply.github.com>2019-05-25 02:38:43 +0530
committerBryan McLellan <btm@loftninjas.org>2019-05-24 14:08:43 -0700
commit2003c28b28a481b429eba4fe0fccdabbc6ec21c6 (patch)
tree0d1c0814197d05ee13c9a5a095f55b22c5b2f6c5 /lib/chef/knife
parent37fdd67b607a3aa7159783d32312d75d58cdfdc8 (diff)
downloadchef-2003c28b28a481b429eba4fe0fccdabbc6ec21c6.tar.gz
Chef-15: Add missing deprecated options (#8573)
* Add missing deprecated options Signed-off-by: Vivek Singh <vivek.singh@msystechnologies.com>
Diffstat (limited to 'lib/chef/knife')
-rw-r--r--lib/chef/knife/bootstrap.rb8
1 files changed, 7 insertions, 1 deletions
diff --git a/lib/chef/knife/bootstrap.rb b/lib/chef/knife/bootstrap.rb
index 1fc4a98680..d7f4518de6 100644
--- a/lib/chef/knife/bootstrap.rb
+++ b/lib/chef/knife/bootstrap.rb
@@ -353,6 +353,8 @@ class Chef
# (--bool-option) to valued flag (--new-option VALUE)
# this will be the value that is assigned the new flag when the old flag is used.
auth_timeout: [:max_wait, "--max-wait SECONDS" ],
+ forward_agent:
+ [:ssh_forward_agent, "--forward-agent"],
host_key_verify:
[:ssh_verify_host_key, "--[no-]host-key-verify"],
prerelease:
@@ -362,7 +364,7 @@ class Chef
ssh_password:
[:connection_password, "--ssh-password PASSWORD"],
ssh_port:
- [:connection_port, "-ssh-port" ],
+ [:connection_port, "--ssh-port"],
ssl_peer_fingerprint:
[:winrm_ssl_peer_fingerprint, "--ssl-peer-fingerprint FINGERPRINT"],
winrm_user:
@@ -375,6 +377,10 @@ class Chef
[:winrm_auth_method, "--winrm-authentication-protocol PROTOCOL"],
winrm_session_timeout:
[:session_timeout, "--winrm-session-timeout MINUTES"],
+ winrm_ssl_verify_mode:
+ [:winrm_no_verify_cert, "--winrm-ssl-verify-mode MODE"],
+ winrm_transport:
+ [:winrm_ssl, "--winrm-transport TRANSPORT"],
}.freeze
DEPRECATED_FLAGS.each do |deprecated_key, deprecation_entry|