Defined Type: limits::limits
- Defined in:
- manifests/limits.pp
Overview
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 |
# File 'manifests/limits.pp', line 1
define limits::limits(
$user,
$limit_type,
$ensure = present,
$hard = undef,
$soft = undef,
$both = undef
) {
include limits::params
if $name =~ /\.conf$/ {
$target_file = "${limits::params::limits_dir}${name}"
} else {
$target_file = "${limits::params::limits_dir}${name}.conf"
}
file { $target_file:
ensure => $ensure,
owner => 'root',
group => 'root',
content => template('limits/limits.erb'),
}
}
|