Last active
October 15, 2015 19:25
-
-
Save nrvale0/9939664 to your computer and use it in GitHub Desktop.
Example of Puppet Collector to avoid using Stages for prep of Yum repo
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Example of using Collector to avoid having to do | |
# clever things with Puppet Stages. | |
yumrepo { 'epel': | |
... | |
} | |
# For all Package resources in the catalog, append | |
# the EPEL repo to the require metaparameter thus | |
# ensuring that the EPEL yumrepo has been configured | |
# before we install any packages via the yum provider. | |
Package <||> { require +> Yumrepo['epel'],} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment