850bc1b685
Mostly documentation and parameterised class parameter complaints. Change-Id: I5b3ffa4ad3f707f385165c2d86c891c6bd4c1ae0 Reviewed-on: https://review.openstack.org/16901 Reviewed-by: James E. Blair <corvus@inaugust.com> Approved: Clark Boylan <clark.boylan@gmail.com> Reviewed-by: Clark Boylan <clark.boylan@gmail.com> Tested-by: Jenkins
19 lines
404 B
Puppet
19 lines
404 B
Puppet
# == Define: ulimit::conf
|
|
#
|
|
define ulimit::conf (
|
|
$limit_domain,
|
|
$limit_item,
|
|
$limit_value,
|
|
$limit_type = 'soft',
|
|
) {
|
|
|
|
file { "/etc/security/limits.d/99-${limit_domain}-${limit_type}-${limit_item}.conf":
|
|
ensure => present,
|
|
content => template('ulimit/limits.erb'),
|
|
replace => true,
|
|
owner => 'root',
|
|
mode => '0644',
|
|
require => File['/etc/security/limits.d'],
|
|
}
|
|
}
|