Open oniGino opened 3 years ago
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
Yumrepo['mariadb'] -> Package<| name == 'mysql-server'|>
its faster than me filing multiple PR's and waiting forever for a version bump
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 module