194
195
196
197
198
199
200
201
202
203
204
205
|
# File 'lib/chef/knife/cs_stack_create.rb', line 194
def knife_ssh(host_list, command)
ssh = Chef::Knife::Ssh.new
ssh.name_args = [host_list, command]
ssh.config[:ssh_user] = config[:ssh_user]
ssh.config[:ssh_password] = config[:ssh_password]
ssh.config[:ssh_port] = Chef::Config[:knife][:ssh_port] || config[:ssh_port]
ssh.config[:identity_file] = config[:identity_file]
ssh.config[:manual] = true
ssh.config[:no_host_key_verify] = config[:no_host_key_verify]
ssh
end
|