diff --git a/CHANGELOG.md b/CHANGELOG.md index a010391..6296a65 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,17 @@ cookbook-rb-common CHANGELOG =============== +## 0.2.0 + + - Miguel Negron + - [31f48c6] Swap order on change limits + - [671a35f] Bump version + - [f744111] bugfix/#18983_rlimit_nginx_problem + - Miguel Negrón + - [9055703] Update README.md + - [d2f8e42] Update rpm.yml + - [a433f03] Update metadata.rb + ## 0.1.0 - Miguel Negron diff --git a/resources/metadata.rb b/resources/metadata.rb index 803fd48..9825a1d 100755 --- a/resources/metadata.rb +++ b/resources/metadata.rb @@ -3,4 +3,4 @@ maintainer_email 'git@redborder.com' license 'AGPL-3.0' description 'Redborder common system settings' -version '0.1.0' +version '0.2.0' diff --git a/resources/providers/config.rb b/resources/providers/config.rb index 7ed4a46..a20d81f 100755 --- a/resources/providers/config.rb +++ b/resources/providers/config.rb @@ -3,16 +3,17 @@ action :configure do # nofile settings - # soft - execute "ulimit -Sn #{node['redborder']['nofile']['soft']}" do - not_if "ulimit -Sn | grep #{node['redborder']['nofile']['soft']}" - end # hard execute "ulimit -Hn #{node['redborder']['nofile']['hard']}" do not_if "ulimit -Hn | grep #{node['redborder']['nofile']['hard']}" end + # soft + execute "ulimit -Sn #{node['redborder']['nofile']['soft']}" do + not_if "ulimit -Sn | grep #{node['redborder']['nofile']['soft']}" + end + template '/etc/security/limits.d/10-nofile.conf' do source '10-nofile.conf.erb' cookbook 'rb-common'