Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
mirror
chef-ulimit
Commits
ffe7bcfa
Commit
ffe7bcfa
authored
Jun 28, 2013
by
Brian Hatfield
Browse files
Bump version, tweak maintainer, tweak README
parent
3e489d22
Changes
3
Hide whitespace changes
Inline
Side-by-side
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
Supports
Markdown
0%
Try again
or
attach a new 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