lib/chef/knife/bootstrap_windows_ssh.rb in knife-windows-1.1.1 vs lib/chef/knife/bootstrap_windows_ssh.rb in knife-windows-1.1.2
- old
+ new
@@ -64,12 +64,16 @@
:long => "--forward-agent",
:description => "Enable SSH agent forwarding",
:boolean => true
option :identity_file,
- :short => "-i IDENTITY_FILE",
:long => "--identity-file IDENTITY_FILE",
+ :description => "The SSH identity file used for authentication. [DEPRECATED] Use --ssh-identity-file instead."
+
+ option :ssh_identity_file,
+ :short => "-i IDENTITY_FILE",
+ :long => "--ssh-identity-file IDENTITY_FILE",
:description => "The SSH identity file used for authentication"
# DEPR: Remove this option for the next release.
option :host_key_verification,
:long => "--[no-]host-key-verify",
@@ -97,9 +101,10 @@
ssh.config[:ssh_user] = locate_config_value(:ssh_user)
ssh.config[:ssh_password] = locate_config_value(:ssh_password)
ssh.config[:ssh_port] = locate_config_value(:ssh_port)
ssh.config[:ssh_gateway] = locate_config_value(:ssh_gateway)
ssh.config[:identity_file] = config[:identity_file]
+ ssh.config[:ssh_identity_file] = config[:ssh_identity_file] || config[:identity_file]
ssh.config[:forward_agent] = config[:forward_agent]
ssh.config[:manual] = true
ssh.config[:host_key_verify] = config[:host_key_verify]
ssh.run
end