Skip to content

Commit

Permalink
Merge pull request #440 from ad-notam/master
Browse files Browse the repository at this point in the history
Re-add Gentoo support
  • Loading branch information
3flex committed Sep 21, 2014
2 parents f4ef310 + 183ee5d commit 58d5c11
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 0 deletions.
8 changes: 8 additions & 0 deletions manifests/package.pp
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,14 @@
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': {
Expand Down
13 changes: 13 additions & 0 deletions manifests/package/gentoo.pp
Original file line number Diff line number Diff line change
@@ -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,
}

}

0 comments on commit 58d5c11

Please sign in to comment.