system-config/modules/ulimit/manifests/params.pp
Dan Prince c5e4631a6b Update ulimit modules to support Red Hat.
Adds a new params module which is used to provide distribution
specific parameters for other modules. The init module was updated
to make use of the new parameters.

Change-Id: Ib81e919a777741d9d58d687672508b8dd53498ff
Reviewed-on: https://review.openstack.org/18997
Reviewed-by: Clark Boylan <clark.boylan@gmail.com>
Reviewed-by: Jeremy Stanley <fungi@yuggoth.org>
Reviewed-by: James E. Blair <corvus@inaugust.com>
Approved: James E. Blair <corvus@inaugust.com>
Tested-by: Jenkins
2013-01-17 18:24:50 +00:00

18 lines
457 B
Puppet

# Class: ulimit::params
#
# This class holds parameters that need to be
# accessed by other classes.
class ulimit::params {
case $::osfamily {
'Fedora', 'Redhat': {
$pam_packages = ['pam']
}
'Debian', 'Ubuntu': {
$pam_packages = ['libpam-modules', 'libpam-modules-bin']
}
default: {
fail("Unsupported osfamily: ${::osfamily} The 'ulimit' module only supports osfamily Fedora, Redhat, Debian, or Ubuntu.")
}
}
}