This repository was archived by the owner on Jun 11, 2019. It is now read-only.

Description
Expected Behavior
Expected class{'yum': before => Package['example']} would ensure the yum repos are installed before puppet attempted to run the install for the package. Similarly, would expect anything requiring the Class['yum'] node would work as expected as well.
Actual Behavior
Due to the use of include and many subclasses, any action against Class['yum'] doesn't cause the desired effect of ensuring that yum is configured before other desired actions.
Steps to Reproduce the Problem
- Make a catalog that includes a new package available from a yet to be configured repo.
- Also include the new repo, and add a dependency from one or the other direction from a package to the Class['yum'].
- When applying the catalog, you may or may not get the desired ordering.
Suggested fix
Change the various include statements to contain so all the subclasses are finished before the Class['yum'] is finished. This allows the desired effect of
class{'yum':
before => Package['example']
}