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