cookbook 'ulimit', '= 0.1.1', :supermarket
ulimit (14) Versions 0.1.1 Follow44
Resources for manaing ulimits
cookbook 'ulimit', '= 0.1.1'
knife supermarket install ulimit
knife supermarket download ulimit
This is a short-and-simple cookbook to provide a user_ulimit resource for overriding various ulimit settings. It places configured templates into /etc/security/limits.d/, named for the user the ulimit applies to.
It also provides a helper recipe (default.rb) for allowing ulimit overrides with the 'su' command on Ubuntu, which is disabled by default for some reason.
Add to your repo, then depend upon this cookbook from wherever you need to override ulimits.
Consume the user_ulimit resource like so:
user_ulimit "tomcat" do filehandle_limit 8192 process_limit 61504 end
This cookbook has no specified dependencies.