Created
July 11, 2014 17:17
-
-
Save palmertime/9c48d00026a0374bfcb1 to your computer and use it in GitHub Desktop.
Not sure if it me or puppet!
This file contains 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
# This works with out issue: | |
$yumrepo_name = 'rhel-source' | |
$yumrepo_baseurl = 'ftp://ftp.redhat.com/pub/redhat/linux/enterprise/$releasever/en/os/SRPMS/' | |
$yumrepo_descr = 'Red Hat Enterprise Linux $releasever - $basearch - Source' | |
$yumrepo_enabled = '0' | |
$yumrepo_gpgcheck = '1' | |
$yumrepo_gpgkey = 'file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release' | |
yumrepo { 'yumrepo': | |
name => $yumrepo_name, | |
baseurl => $yumrepo_baseurl, | |
descr => $yumrepo_descr, | |
enabled => $yumrepo_enabled, | |
gpgcheck => $yumrepo_gpgcheck, | |
gpgkey => $yumrepo_gpgkey | |
} | |
# This does not work, it complains about everything after the name attribute: "Invalid parameter baseurl" | |
# Hiera data | |
yumrepo: | |
domain-corp_rh6: | |
name: 'DOMAIN-Corp_RH6_base' | |
baseurl: 'http://repo.domain.com/rh6-x86_64/RPMS.os/' | |
descr: 'Domain Corp RH 6 Base' | |
enabled: '1' | |
gpgcheck: '1' | |
gpgkey: 'file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release' | |
# Module code | |
$yumrepo_hiera = hiera_hash('yumrepo') | |
create_resources(user, $yumrepo_hiera) | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment