Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't use mongodb repository on debian 9 #529

Closed
hdep opened this issue Feb 26, 2019 · 4 comments
Closed

Can't use mongodb repository on debian 9 #529

hdep opened this issue Feb 26, 2019 · 4 comments

Comments

@hdep
Copy link
Contributor

hdep commented Feb 26, 2019

Affected Puppet, Ruby, OS and module versions/distributions

  • Puppet: 5.3.7
  • Ruby: 2.3.3
  • Distribution: Debian 9
  • Module version: 2.4.1

How to reproduce (e.g Puppet code you use)

With hiere set some variables to use official mongodb repository :

mongodb::globals::manage_package_repo: true
mongodb::globals::manage_package: true
mongodb::globals::repo_location: 'http://repo.mongodb.org/apt/debian'
mongodb::globals::version: '3.6'

What are you seeing

puppet run failed for apt key configuration

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, key hash must contain at least an id entry (file: /etc/puppetlabs/code/environments/production/modules/apt/manifests/source.pp, line: 47, column: 9) (file: /etc/puppetlabs/code/environments/production/modules/mongodb/manifests/repo/apt.pp, line: 9) on node node.domain.local
Warning: Not using cache on failed catalog

What behaviour did you expect instead

Module add the repository key without error

@bastelfreak
Copy link
Member

Hi @hdep, thanks for rising the issue. Are you able to provide a fix for this?

@hdep
Copy link
Contributor Author

hdep commented Feb 27, 2019

Hi, I'll try to fix this.
The second issue is that apt key are not variable so if it change we need to change the module...

@hdep
Copy link
Contributor Author

hdep commented Feb 27, 2019

This only happen when I set with hiera those two settings :

mongodb::globals::manage_package_repo: true
mongodb::globals::manage_package: true
mongodb::globals::repo_location: 'http://repo.mongodb.org/apt/debian'

Currently I don't understand why.

@hdep
Copy link
Contributor Author

hdep commented Dec 11, 2020

No activity so I'll close this.

@hdep hdep closed this as completed Dec 11, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants