Vagrant/Puppet: prevent man-in-the-middle attacks via the EPEL repo
This commit is contained in:
parent
db816d3d0b
commit
088e907f9e
|
@ -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',
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue