Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Open sidebar
mirror
chef-ulimit
Commits
73c505b5
Unverified
Commit
73c505b5
authored
Jun 18, 2020
by
Tim Smith
Committed by
GitHub
Jun 18, 2020
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #72 from vt0r/template_remove_newlines
Ensure template only changes when resource does
parents
be243903
086c138d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
7 deletions
+0
-7
templates/ulimit.erb
templates/ulimit.erb
+0
-7
No files found.
templates/ulimit.erb
View file @
73c505b5
# Limits settings for
<%=
@ulimit_user
%>
<%
unless
@filehandle_limit
.
nil?
-%>
<%=
@ulimit_user
-%>
- nofile
<%=
@filehandle_limit
%>
<%
else
-%><%
unless
@filehandle_soft_limit
.
nil?
-%><%=
@ulimit_user
-%>
soft nofile
<%=
@filehandle_soft_limit
%><%
end
-%>
<%
unless
@filehandle_hard_limit
.
nil?
-%><%=
@ulimit_user
-%>
hard nofile
<%=
@filehandle_hard_limit
%><%
end
-%>
<%
end
-%>
<%
unless
@process_limit
.
nil?
-%>
<%=
@ulimit_user
-%>
- nproc
<%=
@process_limit
%>
<%
else
-%><%
unless
@process_soft_limit
.
nil?
-%><%=
@ulimit_user
-%>
soft nproc
<%=
@process_soft_limit
%><%
end
-%>
<%
unless
@process_hard_limit
.
nil?
-%><%=
@ulimit_user
-%>
hard nproc
<%=
@process_hard_limit
%><%
end
-%>
<%
end
-%>
<%
unless
@memory_limit
.
nil?
-%>
<%=
@ulimit_user
-%>
- memlock
<%=
@memory_limit
%>
<%
end
-%>
<%
unless
@core_limit
.
nil?
-%>
<%=
@ulimit_user
-%>
- core
<%=
@core_limit
%>
<%
else
-%><%
unless
@core_soft_limit
.
nil?
-%><%=
@ulimit_user
-%>
soft core
<%=
@core_soft_limit
%><%
end
-%>
<%
unless
@core_hard_limit
.
nil?
-%><%=
@ulimit_user
-%>
hard core
<%=
@core_hard_limit
%><%
end
-%>
<%
end
-%>
<%
unless
@stack_limit
.
nil?
-%>
<%=
@ulimit_user
-%>
- stack
<%=
@stack_limit
%>
<%
else
-%><%
unless
@stack_soft_limit
.
nil?
-%><%=
@ulimit_user
-%>
soft stack
<%=
@stack_soft_limit
%><%
end
-%>
<%
unless
@stack_hard_limit
.
nil?
-%><%=
@ulimit_user
-%>
hard stack
<%=
@stack_hard_limit
%><%
end
-%>
<%
end
-%>
<%
unless
@rtprio_limit
.
nil?
-%>
<%=
@ulimit_user
-%>
- rtprio
<%=
@rtprio_limit
%>
<%
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
-%>
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment