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

Duplicate declaration: Yumrepo[epel] is already declared #9

Closed
triforce opened this issue Mar 22, 2021 · 2 comments
Closed

Duplicate declaration: Yumrepo[epel] is already declared #9

triforce opened this issue Mar 22, 2021 · 2 comments
Labels
backwards-incompatible Breaking change

Comments

@triforce
Copy link

When using this and the https://github.com/voxpupuli/puppet-yum module I am getting a duplicate resource error:

Duplicate declaration: Yumrepo[epel] is already declared at:

modules/yum/manifests/init.pp, line: 136
modules/icinga/manifests/repos/yum.pp, line: 20

Should this module be checking for the existence of the Yumrepo[epel] before declaring the resource or is this a configuration problem on my behalf?

I am using version 2.0.0 of both modules.

@lbetz
Copy link
Contributor

lbetz commented Mar 22, 2021

Yes, please disable the epel repository in one of both modules. For icinga::repos set attribute manage_epel => false or set icinga::repos::manage_epel: false in your hier configuration.

@lbetz lbetz added the backwards-incompatible Breaking change label Mar 22, 2021
@triforce
Copy link
Author

Thank you that works

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backwards-incompatible Breaking change
Projects
None yet
Development

No branches or pull requests

2 participants