Skip to content

Instantly share code, notes, and snippets.

@nrvale0
Last active October 15, 2015 19:25
Show Gist options
  • Save nrvale0/9939664 to your computer and use it in GitHub Desktop.
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
# 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