commit
58d5c11cb8
2 changed files with 21 additions and 0 deletions
|
@ -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': {
|
||||
|
|
13
manifests/package/gentoo.pp
Normal file
13
manifests/package/gentoo.pp
Normal 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,
|
||||
}
|
||||
|
||||
}
|
Loading…
Reference in a new issue