Using the ssh transport

45 views
Skip to first unread message

Sharninder Khera

unread,
Dec 10, 2013, 7:45:05 AM12/10/13
to puppe...@googlegroups.com
Hi,

I'm new to puppet so please pardon my ignorance.

I'm writing a module to work with a network device that I have and trying to connect to it using the ssh transport.

My device.conf is 

[device]
type <type>
url ssh://.....

network_device/device.rb has 

@transport = Puppet::Util::NetworkDevice::Transport::Ssh.new
transport.connect

Now when I call this using puppet device -d, the output is stuck at

Debug: Finishing transaction 70351396003780
Debug: connecting to <device.com> as admin

I traced that to the transport/ssh.rb that ships with puppet. I've gone through the existing cisco ios device management module and that seems to be calling it's own transport instead (sshios:// -> sshios.rb) and that method works for me too but how do I begin to use the built in ssh module.

--
Sharninder


Brice Figureau

unread,
Dec 10, 2013, 12:08:23 PM12/10/13
to puppe...@googlegroups.com
If you run puppet device with the --debug option what does it give?
What are the differences between sshios and ssh?
Maybe there's a bug in the default ssh transport that has been fixed in
the module and we should backport?
You might also want to add some "puts" statement in the ssh.rb event
loop to see what happens.
--
Brice Figureau
My Blog: http://www.masterzen.fr/

Reply all
Reply to author
Forward
0 new messages