module-nginx/manifests/package/redhat.pp

33 lines
703 B
ObjectPascal
Raw Normal View History

2011-06-07 01:05:27 +02:00
# Class: nginx::package::redhat
#
# This module manages NGINX package installation on RedHat based systems
#
# Parameters:
#
# There are no default parameters for this class.
2011-06-07 01:05:27 +02:00
#
# Actions:
#
# Requires:
#
# Sample Usage:
#
# This class file is not called directly
2011-06-06 17:04:24 +02:00
class nginx::package::redhat {
$redhat_packages = ['nginx', 'GeoIP', 'gd', 'libXpm', 'libxslt']
$os_type = downcase($::operatingsystem)
yumrepo { "nginx-release":
2012-08-28 22:08:30 +02:00
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'],
}
}