Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Replaced
bash
with file
resource when setting the limits
While reading the recommendations found [here](http://asquera.de/opensource/2012/11/25/elasticsearch-pre-flight-checklist/#file-descriptors) I thought that it would be a good idea to use `limits.d` instead of hacking the `limits.conf` file directly. This way Chef handles the idempotency itself and we can drop the custom (and hard to read) `not_if` magic. The "chef-ulimit" cookbook uses the same approach: https://github.com/bmhatfield/chef-ulimit/blob/master/definitions/user_ulimit.rb#L13 Tested on Vagrant with Debian 6 and Ubuntu Precise. Closes #101 Closes #118 Fixes #102
- Loading branch information