diff --git a/manifests/package.pp b/manifests/package.pp index 7e3b701..32ee01a 100644 --- a/manifests/package.pp +++ b/manifests/package.pp @@ -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': { diff --git a/manifests/package/gentoo.pp b/manifests/package/gentoo.pp new file mode 100644 index 0000000..4221cb7 --- /dev/null +++ b/manifests/package/gentoo.pp @@ -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, + } + +}