bodgit / puppet-yum

Puppet Module for managing Yum
https://forge.puppet.com/bodgit/yum
Apache License 2.0
0 stars 1 forks source link

Make plugin packages depend on repo configurations #2

Closed bodgit closed 5 years ago

bodgit commented 5 years ago

Scenario is a host where the default repo configurations won't work so in order to install any plugins the repo configurations need to be required before any plugin packages. Also, due to using stages the standard yum::clean class can't be used as it could theoretically be notified across a stage boundary which is verboten.

bodgit commented 5 years ago

Set custom tags on both the yumrepo and package resources in the module and chain them that way. We can't rely on the tags such as the module name alone as if someone creates a profile::yum class, that would also be tagged as yum and potentially create circular dependencies.