module-nginx/manifests/package/redhat.pp
2012-08-28 15:08:30 -05:00

32 lines
703 B
Puppet

# Class: nginx::package::redhat
#
# This module manages NGINX package installation on RedHat based systems
#
# Parameters:
#
# There are no default parameters for this class.
#
# Actions:
#
# Requires:
#
# Sample Usage:
#
# This class file is not called directly
class nginx::package::redhat {
$redhat_packages = ['nginx', 'GeoIP', 'gd', 'libXpm', 'libxslt']
$os_type = downcase($::operatingsystem)
yumrepo { "nginx-release":
baseurl => "http://nginx.org/packages/${os_type}/${::lsbmajdistrelease}/\$basearch/",
descr => 'nginx repo',
enabled => '1',
gpgcheck => '0',
}
package { $redhat_packages:
ensure => present,
require => Yumrepo['nginx-release'],
}
}