Ask Your Question
0

puppetlabs-cisco_ios issues

asked 2018-07-04 08:24:30 -0500

dlxneamtu gravatar image

updated 2018-07-05 06:53:31 -0500

DarylW gravatar image

Hi,

Trying to get my cisco devices reachable from puppet master in an agentless manner as described at: https://puppet.com/blog/introducing-n... and on the documentation of the puppetlabs-cisco_ios module. I am using a vey basic setup as below:

root@puppet:/etc/puppetlabs/puppet#  cat device.conf
[cbr8]
type cisco_ios
url file:////etc/puppetlabs/puppet/cbr8.conf

root@puppet:/etc/puppetlabs/puppet# cat cbr8.conf
address = 17.3.10.1
username = admin
port = 22
password = "ascable"
enable_password = "ascable"

Manual SSH works towards that IP with the specified credentials, however, reaching it via puppet fails with:

root@puppet:/etc/puppetlabs/puppet# puppet device --verbose --target cbr8
2018-07-04 04:35:06.098751 WARN  puppetlabs.facter - locale environment variables were bad; continuing with LANG=C LC_ALL=C
Error: Could not run: cannot load such file -- net/ssh/telnet

The proper module is installed in puppet:

root@puppet:/etc/puppetlabs/puppet# puppet module list
2018-07-04 04:44:47.175139 WARN  puppetlabs.facter - locale environment variables were bad; continuing with LANG=C LC_ALL=C
/etc/puppetlabs/code/environments/production/modules
├── puppetlabs-apache (v3.1.0)
├── puppetlabs-cisco_ios (v0.2.0)
├── puppetlabs-concat (v4.2.1)
├── puppetlabs-netdev_stdlib (v0.14.1)
├── puppetlabs-puppetserver_gem (v1.0.0)
├── puppetlabs-resource_api (v0.3.0)
└── puppetlabs-stdlib (v4.25.1)
...

How can I get further with this?

Thanks, Dan

edit retag flag offensive close merge delete

1 Answer

Sort by » oldest newest most voted
0

answered 2018-07-08 22:34:23 -0500

updated 2018-07-09 10:44:30 -0500

Hi Dan,

Classify the proxy agent (the one you are running puppet deviceon: given the above, the host named puppet) with the base class of the cisco-ios module to install the net-ssh-telnet gem on that agent ...

include cisco_ios

Tom Kishel

edit flag offensive delete link more

Comments

Hi Tom, I had several issues due to using http proxy, I manually installed the missing net-ssh-telnet gem now, but I still get the error. Is there anything I need to reinstall so that puppet will load the newly installed gem? Dan

dlxneamtu gravatar imagedlxneamtu ( 2018-07-16 03:16:27 -0500 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

Stats

Asked: 2018-07-04 08:24:30 -0500

Seen: 101 times

Last updated: Jul 09