-
Notifications
You must be signed in to change notification settings - Fork 21
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
Package Dependency Chain without tags breaks module for multistage environments #50
Comments
Are these packages tagged in the puppetlabs/mysql module like this? We rely in that module to actually install the packages |
If you wanted to make a PR against puppetlabs/mysql to add tags to the package resources first then this seems like a good solution |
Ok so why not just do
its faster than me filing multiple PR's and waiting forever for a version bump |
Patch forced yumrepo dependency chain
Patch forced yumrepo dependency chain
In https://github.com/edestecd/puppet-mariadb/blob/master/manifests/repo/yum.pp line 18
Yumrepo['mariadb'] -> Package<| |>
should read something likeYumrepo['mariadb'] -> Package<| tag == 'mariadb'|>
Or else you have now required yumrepo to run prior to ALL packages in the entire repo, this includes packages not in the same stage as the class calls to this module. Thus creating dependency cycles
tag your package calls appropriately then add a tag to this dependency to fix
here is an example of the cycle from my codebase
The package that is now required for
YumRepo[mariadb]
has no association what so ever with this moduleThe text was updated successfully, but these errors were encountered: