Defined Type: psick::limits::config
- Defined in:
- manifests/limits/config.pp
Overview
Define: psick::limits::config
This define configures a limits file under /etc/security/limits.d File name, unless specified by path will be “/etc/security/limits.d/$title.conf”
15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 |
# File 'manifests/limits/config.pp', line 15
define psick::limits::config (
Enum['present','absent'] $ensure = present,
Variant[Undef,String] $content = undef,
Variant[Undef,String] $template = undef,
Variant[Undef,String] $source = undef,
Optional[String] $path = undef,
Hash $file_params = {},
Hash $options = {},
) {
include psick::limits
$file_path = pick($path,"${psick::limits::limits_dir_path}/${title}.conf")
$file_params_default = {
owner => 'root',
group => 'root',
mode => '0644',
content => psick::template($template , $options),
source => $source,
}
file { $file_path:
* => $file_params_default + $file_params,
}
}
|