diff --git a/install_puppet.sh b/install_puppet.sh index 646aa19826..94bdda5775 100755 --- a/install_puppet.sh +++ b/install_puppet.sh @@ -83,11 +83,21 @@ function setup_puppet_fedora { function setup_puppet_rhel7 { - local epel_pkg="http://dl.fedoraproject.org/pub/epel/7/x86_64/e/epel-release-7-2.noarch.rpm" local puppet_pkg="https://yum.puppetlabs.com/el/7/products/x86_64/puppetlabs-release-7-10.noarch.rpm" - # install EPEL - rpm -qi epel-release &> /dev/null || rpm -Uvh $epel_pkg + # install a bootstrap epel repo to install latest epel-release + # package (which provides correct gpg keys, etc); then remove + # boostrap + cat > /etc/yum.repos.d/epel-bootstrap.repo < /dev/null || rpm -Uvh $epel_pkg - # NOTE: for RHEL (not CentOS) enable the optional-rpms channel (if - # not already enabled) - # yum-config-manager --enable rhel-6-server-optional-rpms + # install a bootstrap epel repo to install latest epel-release + # package (which provides correct gpg keys, etc); then remove + # boostrap + cat > /etc/yum.repos.d/epel-bootstrap.repo <