Skip to content

Instantly share code, notes, and snippets.

@zipkid
Created July 10, 2012 14:14
Show Gist options
  • Save zipkid/3083541 to your computer and use it in GitHub Desktop.
Save zipkid/3083541 to your computer and use it in GitHub Desktop.
yumrepos:
epel6:
descr: Extra Packages for Enterprise Linux 6 - $basearch
mirrorlist: https://mirrors.fedoraproject.org/metalink?repo=epel-6&arch=$basearch
enabled: 1
gpgcheck: 1
gpgkey: http://be.mirror.eurid.eu/epel/RPM-GPG-KEY-EPEL-6
failovermethod: priority
puppetlabs:
descr: puppetlabs main - $basearch
baseurl: http://yum.puppetlabs.com/el/6/products/$basearch
enabled: 1
gpgcheck: 1
gpgkey: http://yum.puppetlabs.com/RPM-GPG-KEY-puppetlabs
puppetlabs-dev:
descr: pupeptlabs development - $basearch
baseurl: http://yum.puppetlabs.com/el/6/devel/$basearch
enabled: 1
gpgcheck: 1
gpgkey: http://yum.puppetlabs.com/RPM-GPG-KEY-puppetlabs
puppetlabs-dep:
descr: puppetlabs dependencies - $basearch
baseurl: http://yum.puppetlabs.com/el/6/dependencies/$basearch
enabled: 1
gpgcheck: 1
gpgkey: http://yum.puppetlabs.com/RPM-GPG-KEY-puppetlabs
class repo::yum( $yumrepos = hiera_hash('yumrepos', {} ) )
{
if( $yumrepos )
{
create_resources( yumrepo, $yumrepos )
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment