Created
July 10, 2012 14:14
-
-
Save zipkid/3083541 to your computer and use it in GitHub Desktop.
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
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 | |
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
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