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
ffe7bcfa
Commit
ffe7bcfa
authored
Jun 28, 2013
by
Brian Hatfield
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bump version, tweak maintainer, tweak README
parent
3e489d22
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
29 additions
and
26 deletions
+29
-26
README.md
README.md
+23
-20
metadata.json
metadata.json
+3
-3
metadata.rb
metadata.rb
+3
-3
No files found.
README.md
View file @
ffe7bcfa
...
...
@@ -20,29 +20,32 @@ Usage
=====
Consume the user_ulimit resource like so:
user_ulimit "tomcat" do
filehandle_limit 8192 # optional
process_limit 61504 # optional
memory_limit 1024 # optional
core_limit 2048 # optional
end
```
ruby
user_ulimit
"tomcat"
do
filehandle_limit
8192
# optional
process_limit
61504
# optional
memory_limit
1024
# optional
core_limit
2048
# optional
end
```
You can also define limits using attributes on roles or nodes:
"default_attributes": {
"ulimit
": {
"users
": {
"
tomcat
": {
"filehandle_limit": 8193,
"process
_limit":
61504
},
"hbase": {
"filehandle_limit": 32768
}
}
}
```
"default_attributes
": {
"ulimit
": {
"
users
": {
"tomcat": {
"filehandle
_limit":
8193,
"process_limit": 61504
},
"hbase": {
"filehandle_limit": 32768
}
}
}
}
```
Domain LWRP
===========
...
...
@@ -60,4 +63,4 @@ ulimit_domain 'my_user' do
value 5000
end
end
```
\ No newline at end of file
```
metadata.json
View file @
ffe7bcfa
...
...
@@ -3,12 +3,12 @@
},
"attributes"
:
{
},
"maintainer"
:
"Bri
ghtcove, Inc.
"
,
"maintainer"
:
"Bri
an Hatfield
"
,
"suggestions"
:
{
},
"dependencies"
:
{
},
"maintainer_email"
:
"bhatfield@
brightcove
.com"
,
"maintainer_email"
:
"b
m
hatfield@
gmail
.com"
,
"conflicting"
:
{
},
"platforms"
:
{
...
...
@@ -32,7 +32,7 @@
]
},
"license"
:
"Apache 2.0"
,
"version"
:
"0.
2
.0"
,
"version"
:
"0.
3
.0"
,
"providing"
:
{
},
"recipes"
:
{
...
...
metadata.rb
View file @
ffe7bcfa
maintainer
"Bri
ghtcove, Inc
"
maintainer_email
"
masterchefs@brightcove
.com"
maintainer
"Bri
an Hatfield
"
maintainer_email
"
bmhatfield@gmail
.com"
license
"Apache 2.0"
description
"Installs/Configures ulimit"
long_description
IO
.
read
(
File
.
join
(
File
.
dirname
(
__FILE__
),
'README.md'
))
name
"ulimit"
version
"0.
2
.0"
version
"0.
3
.0"
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