-
Notifications
You must be signed in to change notification settings - Fork 103
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
Duplicate declaration: Package[gnupg] introduced with v2.0.0 #186
Comments
Maybe dropping But package name differs on e.g. Debian, RedHat and Suse, which the |
The gnupg module it relies on has not been touched in many years. It might be good to move this into the module. |
Ah looks like there is now an install_gnupg parmeter in the main branch which fixes it for me. Any chance of a release? |
Agreed it's poorly maintained and needs attention. Right now it's blocking Puppet 8 support as well.
It does use more of the module: puppet-rvm/manifests/system.pp Lines 39 to 47 in 246434b
I don't know if that could be easily replaced by something else. |
I've just suggested to drop the Maybe https://forge.puppet.com/modules/h0tw1r3/gnupg/readme is a potential replacement? |
Affected Puppet, Ruby, OS and module versions/distributions
How to reproduce (e.g Puppet code you use)
Use
apt
andrvm
at the same timeWhat 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 usesensure_packages(['gnupg'])
while thegnupg
module (introduced in 1c71b55) usespackage { '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.The text was updated successfully, but these errors were encountered: