Unverified Commit 551f7919 authored by Tim Smith's avatar Tim Smith Committed by GitHub
Browse files

Merge pull request #68 from davetrollope/as_param

Support the "as" setting in ulimit
parents 6cc3acd9 069d62e7
......@@ -75,6 +75,7 @@ The `user_ulimit` resource creates individual ulimit files that are installed in
- `process_soft_limit` -
- `process_hard_limit` -
- `memory_limit` -
- `virt_limit` -
- `core_limit` -
- `core_soft_limit` -
- `core_hard_limit` -
......
......@@ -23,6 +23,7 @@ class Chef
property :rtprio_limit, [String, Integer]
property :rtprio_soft_limit, [String, Integer]
property :rtprio_hard_limit, [String, Integer]
property :virt_limit, [String, Integer]
action :create do
new_resource.filename = "#{new_resource.filename}.conf" unless new_resource.filename.include?('.conf')
......@@ -47,7 +48,8 @@ class Chef
stack_hard_limit: new_resource.stack_hard_limit,
rtprio_limit: new_resource.rtprio_limit,
rtprio_soft_limit: new_resource.rtprio_soft_limit,
rtprio_hard_limit: new_resource.rtprio_hard_limit
rtprio_hard_limit: new_resource.rtprio_hard_limit,
virt_limit: new_resource.virt_limit
)
end
end
......
......@@ -33,3 +33,7 @@
<% else -%><% unless @rtprio_soft_limit.nil? -%><%= @ulimit_user -%> soft rtprio <%= @rtprio_soft_limit %><% end -%>
<% unless @rtprio_hard_limit.nil? -%><%= @ulimit_user -%> hard rtprio <%= @rtprio_hard_limit %><% end -%>
<% end -%>
<% unless @virt_limit.nil? -%>
<%= @ulimit_user -%> - as <%= @virt_limit %>
<% end -%>
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment