
* Fix following warnings: * case statement without a default case * double quoted string containing no variables * indentation of => is not properly aligned * mode should be represented as a 4 digit octal value or symbolic mode * quoted boolean value found * unquoted file mode * variable not enclosed in {} * Fix following errors: * trailing whitespace found * two-space soft tabs not used * Remove quotes around class in include/require statements Change-Id: Ia407416e51c09fb303675863afa68f526a37abcf
27 lines
908 B
Puppet
27 lines
908 B
Puppet
# EPEL repo (RHEL-alikes only, _not_ Fedora)
|
|
class openstack::repo::epel {
|
|
if ($::osfamily == 'RedHat' and
|
|
$::operatingsystem != 'Fedora' and
|
|
$::operatingsystemrelease =~ /^6\..*$/) {
|
|
include openstack::repo::yum_refresh
|
|
|
|
yumrepo { 'epel':
|
|
mirrorlist => 'https://mirrors.fedoraproject.org/metalink?repo=epel-6&arch=$basearch',
|
|
descr => 'Extra Packages for Enterprise Linux 6 - $basearch',
|
|
enabled => 1,
|
|
gpgcheck => 1,
|
|
gpgkey => 'file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-6',
|
|
failovermethod => priority,
|
|
notify => Exec['yum_refresh']
|
|
}
|
|
file { '/etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-6':
|
|
source => 'puppet:///modules/openstack/RPM-GPG-KEY-EPEL-6',
|
|
owner => root,
|
|
group => root,
|
|
mode => '0644',
|
|
before => Yumrepo['epel'],
|
|
}
|
|
Yumrepo['epel'] -> Package<||>
|
|
}
|
|
}
|