uniak / puppet-networkdevice

Manage cisco devices from puppet
Apache License 2.0
24 stars 11 forks source link

error when using cisco_config #2

Open nelg opened 10 years ago

nelg commented 10 years ago

Hi,

I seem to get the following error: Could not retrieve catalog from remote server: Error 400 on SERVER: Could not autoload puppet/type/cisco_config: no such file to load -- puppet/util/monkey_patches_ios on node

This is running on RHEL6.4, ruby-1.8.7.352-12.

I suspect this is something easy, but I am not sure how to fix it.

Is the a list of gem's I need to ensure are installed on the server, and on the system running puppet device?

I've found that net-ssh is required on the system running "puppet device"

mburger commented 10 years ago

He,

hmm all you should need is the net-ssh gem, nothing else is required.

Have you done a Puppet run on the Machine your trying to run the Puppet Device Command from after installing the Module ?

nelg commented 10 years ago

The problem appears to be related to environments. The used to be a bug where this would happen, where the puppet master would fail to verify custom types, if the puppet master was in an environment that didn't have that type defined.

Adding the networkdevice module to the same environment as the puppet master seems to have fixed this. So.. I wonder if we could make the require, somehow aware of environment it's in.

jorhett commented 8 years ago

Actually I think I've found this problem. As puppet device is using the provider's locally, you must install the module on both the Puppet server (for catalog compilation) and in the puppet device's local module path (for the providers used to affect the device).