Merge pull request #440 from ad-notam/master

Re-add Gentoo support
This commit is contained in:
Matthew Haughton 2014-09-21 12:07:01 -04:00
commit 58d5c11cb8
2 changed files with 21 additions and 0 deletions

View file

@ -73,6 +73,14 @@ class nginx::package(
before => Anchor['nginx::package::end'],
}
}
'Gentoo': {
class { 'nginx::package::gentoo':
package_name => $package_name,
package_ensure => $package_ensure,
require => Anchor['nginx::package::begin'],
before => Anchor['nginx::package::end'],
}
}
default: {
case $::operatingsystem {
'amazon': {

View file

@ -0,0 +1,13 @@
# Class: nginx::package::gentoo
#
# Manage the nginx package on Gentoo
class nginx::package::gentoo(
$package_name = 'www-servers/nginx',
$package_ensure = 'present'
) {
package { $package_name:
ensure => $package_ensure,
}
}