Hi Angel, I'm having a look at this now.
The manifest you supplied looks to be device_manager setup, which is executed either by an agent (if set in an environment) or 'puppet apply' rather than 'puppet device'. This sets up the device.conf ready for puppet device. Can you tell me if you get any output for a 'resource' command eg. # puppet device --verbose --target switch_cisco_pruebas --resource banner Info: retrieving resource: banner from switch_cisco_pruebas at file:///etc/puppetlabs/puppet/devices/switch_cisco_pruebas.conf banner { 'default': motd => 'Compliance banner', } Also - could you verify that the resource_api gem is installed? eg. # gem list | grep resource_api puppet-resource_api (1.6.2) Thanks Will On Friday, November 30, 2018 at 1:29:16 PM UTC, amateo wrote: > > I'm beginning with puppetlabs/cisco_ios module. For the moment, just a > proof of concept. > > These are the modules I have installed: > > /etc/puppetlabs/code/environments/ciscotest/modules > ├── puppetlabs-cisco_ios (v0.6.1) > ├── puppetlabs-concat (v5.1.0) > ├── puppetlabs-device_manager (v2.7.0) > ├── puppetlabs-hocon (v1.0.1) > ├── puppetlabs-netdev_stdlib (v0.17.0) > ├── puppetlabs-puppetserver_gem (v1.0.0) > ├── puppetlabs-resource_api (v1.0.0) > └── puppetlabs-stdlib (v5.1.0) > > In _manifests/site.pp_ I have: > node default { > device_manager {'switch_cisco_pruebas': > type => 'cisco_ios', > credentials => { > address => '1.2.3.4', > port => '22', > username => 'test', > password => 'password', > enable_password => 'enablepassword', > }, > } > } > > The problem I have is that running puppet agent gives no error, but the > device command doesn't work. I have the error: > > root@leo10:/etc/puppetlabs/code/environments/ciscotest# puppet device > --verbose --target switch_cisco_pruebas --apply ~/manifest.pp --noop > Error: Could not autoload puppet/provider/ntp_server/cisco_ios: > superclass mismatch for class Device > Error: Could not autoload puppet/type/ntp_server: Could not autoload > puppet/provider/ntp_server/cisco_ios: superclass mismatch for class Device > Error: Evaluation Error: Error while evaluating a Resource Statement, > Could not autoload puppet/type/ntp_server: Could not autoload > puppet/provider/ntp_server/cisco_ios: superclass mismatch for class > Device (file: /home/amateo_adm/manifest.pp, line: 1, column: 1) on node > switch_cisco_pruebas > > Could anybody help me? > > -- > Angel L. Mateo Martínez > Sección de Telemática > Área de Tecnologías de la Información > y las Comunicaciones Aplicadas (ATICA) > http://www.um.es/atica > Tfo: 868889150 > Fax: 868888337 > -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/0fb86c93-eb54-41b5-94eb-df637ff663d6%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.