Skip to content
This repository has been archived by the owner on Jun 11, 2024. It is now read-only.

credentials are not passed through from device_manager::devices #19

Closed
MichalBryxi opened this issue Jul 10, 2018 · 3 comments
Closed

Comments

@MichalBryxi
Copy link

MichalBryxi commented Jul 10, 2018

  1. Got fresh machine, installed latest 2018.2.x PE
  2. Installed this module via: sudo puppet module install puppetlabs-device_manager
  3. Created classifier group "Cisco ios routers" with "Class: device_manager::devices" and Devices parameter:
{"bigip1.example.com":{"type":"cisco_ios","run_interval":30,"credentials":{"address":"10.0.1.245","port":"22","username":"adminFOOO","password":"cisco2600","enable_password":"cisco2600"}}}
  1. Pinned a node to that group (for simplicity I used the master itself, but don't think that should make any difference)
  2. Ran puppet on that node.
  3. Got following error:

Could not retrieve catalog from remote server: Error 500 on SERVER: Server Error: Evaluation Error: Error while evaluating a Resource Statement, Evaluation Error: Error while evaluating a Function Call, Parameter Error: either credentials or url must be specified (file: /etc/puppetlabs/code/environments/production/modules/device_manager/manifests/init.pp, line: 31, column: 5) (file: /etc/puppetlabs/code/environments/production/modules/device_manager/manifests/devices.pp, line: 55) on node jbvp4guldxcwtad.delivery.puppetlabs.net

And looks like devices.pp:55 reads some data from hierra? Can't tell what's wrong / how to fix it. But this was almost pristine machine, so should not be happening?

@MichalBryxi
Copy link
Author

cc: @DavidS @tphoney

@MichalBryxi
Copy link
Author

Ok so just debugged this with Dimitri and when we specify url parameter, it works. So seems like the module is unable to extract credentials parameter from the devices parameter.

@DavidS
Copy link
Contributor

DavidS commented Jul 16, 2018

Yeah,

device_manager {$title:
name => $device['name'],
type => $device['type'],
url => $device['url'],
debug => $device['debug'],
run_interval => $device['run_interval'],
run_via_exec => $device['run_via_exec'],
include_module => $device['include_module'],
}
is not passing credentials through.

@DavidS DavidS changed the title Credentials / Hierra clash? credentials are not passed through from device_manager::devices Jul 16, 2018
DavidS added a commit to DavidS/device_manager that referenced this issue Jul 16, 2018
tkishel pushed a commit to tkishel/device_manager that referenced this issue Jul 27, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants