On Tue, 2013-12-10 at 04:45 -0800, Sharninder Khera wrote:
> 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.

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/

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-dev/1386695303.28554.16.camel%40arsenic.daysofwonder.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to