-
Notifications
You must be signed in to change notification settings - Fork 102
Description
Affected Puppet, Ruby, OS and module versions/distributions
- Puppet: 6.27.0
- Ruby: 2.7
- Distribution: Ubuntu
- Module version: 2.0.0
How to reproduce (e.g Puppet code you use)
Use apt
and rvm
at the same time
What are you seeing
Error: Could not retrieve catalog from remote server: Error 500 on SERVER: Server Error: Evaluation Error: Error while evaluating a Resource Statement, Duplicate declaration: Package[gnupg] is already declared at (file: /etc/puppetlabs/code/environments/production/modules/apt/manifests/init.pp, line: 372); cannot redeclare (file: /etc/puppetlabs/code/environments/production/modules/gnupg/manifests/install.pp, line: 4) (file: /etc/puppetlabs/code/environments/production/modules/gnupg/manifests/install.pp, line: 4, column: 3) on node some-host.example.com
What behaviour did you expect instead
Successful management of rvm
Any additional information you'd like to impart
The apt
module uses ensure_packages(['gnupg'])
while the gnupg
module (introduced in 1c71b55) uses package { 'gnupg':...
with some parameters.
Except for either fixing the gnupg
module (which is outdated anyways - last release 2016) or getting rid of it, I don't have any idea how to properly fix this.