Vagrant/Puppet: prevent man-in-the-middle attacks via the EPEL repo

This commit is contained in:
Alexander A. Klimov 2018-06-29 11:05:06 +02:00
parent db816d3d0b
commit 088e907f9e
1 changed files with 6 additions and 6 deletions

View File

@ -13,12 +13,12 @@
# include epel
#
class epel {
yumrepo { 'epel':
mirrorlist => "https://mirrors.fedoraproject.org/mirrorlist?repo=epel-${::operatingsystemmajrelease}&arch=${::architecture}",
enabled => '1',
gpgcheck => '0',
descr => "Extra Packages for Enterprise Linux ${::operatingsystemmajrelease} - ${::architecture}"
exec { 'rpm --import RPM-GPG-KEY-EPEL':
command => '/bin/rpm --import https://dl.fedoraproject.org/pub/epel/RPM-GPG-KEY-EPEL-7',
}
-> exec { 'yum install epel-release-latest':
command => '/bin/yum install -y https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm',
creates => '/etc/yum.repos.d/epel.repo',
}
}