1 # == Define: site::limit
3 # Apply a ulimit for a particular user on this system. Most commonly used for
4 # increasing the number of open files that are allowed on the system.
9 # The user account to apply the limit to. Can also be a group, see
10 # http://linux.die.net/man/5/limits.conf or the manual page for limits.conf
14 # The number that this limit should be increased to.
17 # Whether the limit is hard, soft, or '-'.
20 # The item to apply the limit to. See http://linux.die.net/man/5/limits.conf
21 # or the manual page for limits.conf for something accurate for a specific
22 # OS. This defaults to nofile as this is the most commonly changed limit.
26 # site::limit { 'a_jetty_app':
27 # limit_user => jetty,
28 # #limit_type => nofile # this is the default so commented out
37 $limit_item = 'nofile',
62 fail("${limit_item} is not a valid ulimit item")
71 fail("${limit_item} is not a valid ulimit type")
75 file { "/etc/security/limits.d/${name}.conf":
77 content => template('site/limits.conf.erb'),