Skip to content
This repository has been archived by the owner on Mar 8, 2023. It is now read-only.

gcc package dependency Duplicate declaration: Package[gcc] is already declared in file #108

Closed
aamerik opened this issue Nov 7, 2014 · 1 comment
Assignees
Labels

Comments

@aamerik
Copy link

aamerik commented Nov 7, 2014

Do you know if there is any way to override the inclusion of 'gcc' package? I have another module that provides Package['gcc'] and it's causing the issue below:

puppet agent -t
Warning: Setting templatedir is deprecated. See http://links.puppetlabs.com/env-settings-deprecations
   (at /usr/lib/ruby/site_ruby/1.8/puppet/settings.rb:1134:in `issue_deprecation_warning')
Info: Retrieving pluginfacts
Info: Retrieving plugin
Info: Loading facts
Error: Could not retrieve catalog from remote server: Error 400 on SERVER: Duplicate declaration: Package[gcc] is already declared in file /etc/puppetmaster/environments/production/modules/graphite/manifests/install.pp:57; cannot redeclare at /etc/puppetmaster/environments/production/modules/gcc/manifests/init.pp:19 on node eng-sensu-poc.dev.ca1.foo.co
Warning: Not using cache on failed catalog
Error: Could not retrieve catalog; skipping run
@dwerder dwerder self-assigned this Nov 8, 2014
@dwerder
Copy link
Member

dwerder commented Nov 9, 2014

At the moment, the easiest way for you would be to remove the package from the $graphitepkgs array in params.pp

@aamerik aamerik closed this as completed Nov 9, 2014
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Development

No branches or pull requests

2 participants