addding yumrepo for RHEL systems to ensure latest from NGINX

This commit is contained in:
James Fryman 2012-08-27 09:26:48 -05:00
parent b302fcf598
commit 49cc046ac8

View file

@ -15,7 +15,16 @@
# This class file is not called directly
class nginx::package::redhat {
$redhat_packages = ['nginx', 'GeoIP', 'gd', 'libXpm', 'libxslt']
yumrepo { "nginx-release":
baseurl => 'http://nginx.org/packages/OS/OSRELEASE/$basearch/'
descr => 'nginx repo',
enabled => '1',
gpgcheck => '0',
}
package { $redhat_packages:
ensure => present,
ensure => present,
require => Yumrepo['nginx-release'],
}
}