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
28b7bfce
Commit
28b7bfce
authored
Apr 26, 2017
by
Tim Smith
Browse files
Add a test recipe to use the resources
Signed-off-by:
Tim Smith
<
tsmith@chef.io
>
parent
65fd3d31
Changes
5
Hide whitespace changes
Inline
Side-by-side
.kitchen.yml
View file @
28b7bfce
...
...
@@ -9,15 +9,11 @@ verifier:
name
:
inspec
platforms
:
-
name
:
centos-6.8
-
name
:
centos-7.3
-
name
:
debian-7.11
-
name
:
debian-8.7
-
name
:
fedora-25
-
name
:
opensuse-leap-42.2
-
name
:
ubuntu-14.04
-
name
:
ubuntu-16.04
suites
:
-
name
:
default
run_list
:
ulimi
t::default
run_list
:
tes
t::default
.rubocop.yml
0 → 100644
View file @
28b7bfce
Lint/AmbiguousOperator
:
Exclude
:
-
'
resources/domain.rb'
Berksfile
View file @
28b7bfce
source
'https://supermarket.chef.io'
metadata
group
:integration
do
cookbook
'test'
,
path:
'test/cookbooks/test'
end
test/cookbooks/test/metadata.rb
0 → 100644
View file @
28b7bfce
name
'test'
license
'Apache-2.0'
version
'1.0.0'
depends
'ulimit'
test/cookbooks/test/recipes/default.rb
0 → 100644
View file @
28b7bfce
include_recipe
'ulimit::default'
ulimit_domain
'my_user'
do
rule
do
item
:nofile
type
:hard
value
10000
end
rule
do
item
:nofile
type
:soft
value
5000
end
end
user
'tomcat'
user_ulimit
'tomcat'
do
filehandle_soft_limit
8192
filehandle_hard_limit
8192
process_soft_limit
61504
process_hard_limit
61504
memory_limit
1024
core_limit
2048
core_soft_limit
1024
core_hard_limit
'unlimited'
stack_soft_limit
2048
stack_hard_limit
2048
end
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