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

use ensure_packages #4

Merged
merged 2 commits into from
Jan 7, 2021
Merged

use ensure_packages #4

merged 2 commits into from
Jan 7, 2021

Conversation

spakka
Copy link
Contributor

@spakka spakka commented Sep 10, 2020

If the mirror_repos module is used alongside another module which also tries to install the same packages, Puppet will fail with a Duplicate Declaration error.

Using ensure_packages() from stdlib will only instantiate the package resource if it doesn't already exist.

Copy link
Owner

@bp85 bp85 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@bp85 bp85 merged commit 0a20d26 into bp85:master Jan 7, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants