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

Cannot use before or require against the yum class #164

@critch

Description

@critch

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

  1. Make a catalog that includes a new package available from a yet to be configured repo.
  2. Also include the new repo, and add a dependency from one or the other direction from a package to the Class['yum'].
  3. 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']
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions