puppet-mongodb
puppet-mongodb copied to clipboard
Installation from local (Nexus) cache of the mongodb.org apt repository doesn't work
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.