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

Installation from local (Nexus) cache of the mongodb.org apt repository doesn't work #564

Open
dhs-rec opened this issue Nov 25, 2019 · 0 comments

Comments

@dhs-rec
Copy link
Contributor

dhs-rec commented Nov 25, 2019

Affected Puppet, Ruby, OS and module versions/distributions

  • Puppet: 5.x
  • Distribution: Ubuntu
  • Module version: 3.0.0

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

  class { 'mongodb::globals':
    manage_package_repo => true,
    repo_location       => 'https://our.nexus.server/repository/mongodb-org',
    version             => '4.2.1',
  }

What are you seeing

The packages cannot be installed from the cache.

What behaviour did you expect instead

The packages should be installed from the cache.

Any additional information you'd like to impart

I think this comes from the if-elsif-else block starting at line 34 in manifests/repo.pp, which prohibits further repository configuration if repo_location has been set. However, in case of a Nexus cache, the only thing that changes is the URL. Everything else that goes into the sources.list file should stay the same.

@dhs-rec dhs-rec changed the title Installation from mongodb.org apt repository doesn't work if it's cached locally (Nexus) Installation from local (Nexus) cache of the mongodb.org apt repository doesn't work Nov 25, 2019
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

1 participant