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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/47d7e959-8859-5459-c885-a15bb89fbd1b%40um.es.
For more options, visit https://groups.google.com/d/optout.

Reply via email to