limits: Manage user and group limits via Puppet
limits::limits: Manage individual user/group limits
== Class: limits This module manages the limits of the PAM module pam_limits.
include limitsThe following parameters are available in the limits class:
limits_dirmanage_limits_d_dirpurge_limits_d_dirlimits_filemanage_limits_filelimits_file_ownerlimits_file_grouplimits_file_modelimits_templateentries
Data type: String[1]
Directory for individual limits config files
Data type: Boolean
Manage $limits_dir itself
Data type: Boolean
Purge $limits_dir
Data type: String[1]
Basic limits configuration file
Data type: Boolean
Manage $limits_file
Data type: String[1]
Owner of $limits_file
Data type: String[1]
Group $limits_file
Data type: String[1]
Mode $limits_file
Data type: String[1]
Name of the template to use for $limits_file
Data type: Optional[Hash[String[1], Hash[Pattern[/\A[a-z][a-z0-9_]*\Z/], Data], 1]]
limits configuration file(s) entries
This defined type creates individual limit configuration files in the limits.d directory. The title should be of the form user/limit_type if $user and $limit_type are not provided separately.
limits::limits{'*/nofile':
hard => 12345,
soft => 123,
}limits::limits{'root/nofile':
both => 1234,
}limits::limits{'root/nofile':
both => 1234,
target => '01-root.conf',
}
limits::limits{'root/nproc':
both => 1234,
target => '01-root.conf',
}The following parameters are available in the limits::limits defined type:
Data type: Enum['absent', 'present']
Whether the limit configuration should be present or absent
Default value: present
Data type: Optional[String[1]]
The user or group name to apply limits to. If not specified, extracted from title
Default value: undef
Data type: Optional[String[1]]
The type of limit to set (e.g., 'nofile', 'nproc', 'core'). If not specified, extracted from title
Default value: undef
Data type: Optional[Variant[Integer, String]]
The hard limit value
Default value: undef
Data type: Optional[Variant[Integer, String]]
The soft limit value
Default value: undef
Data type: Optional[Variant[Integer, String]]
Set both hard and soft limits to the same value (uses '-' in limits file)
Default value: undef
Data type: Optional[String[1]]
Name of file in limits::limits_dir directory where settings will be applied.
If provided, title with .conf extension will not be used as target file.
Default value: undef