addding yumrepo for RHEL systems to ensure latest from NGINX
This commit is contained in:
parent
b302fcf598
commit
49cc046ac8
1 changed files with 10 additions and 1 deletions
|
@ -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,
|
||||
require => Yumrepo['nginx-release'],
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue