Commit 28b7bfce authored by Tim Smith's avatar Tim Smith
Browse files

Add a test recipe to use the resources


Signed-off-by: default avatarTim Smith <tsmith@chef.io>
parent 65fd3d31
......@@ -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: ulimit::default
run_list: test::default
Lint/AmbiguousOperator:
Exclude:
- 'resources/domain.rb'
source 'https://supermarket.chef.io'
metadata
group :integration do
cookbook 'test', path: 'test/cookbooks/test'
end
name 'test'
license 'Apache-2.0'
version '1.0.0'
depends 'ulimit'
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
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