Skip to content

Commit

Permalink
Introduce user provider and resource
Browse files Browse the repository at this point in the history
- Fixes #269, adds an `elasticsearch_user` resource with provider that creates a user, group, and removes the automatic homedir

- Pins chef to 11.16.4 since chef 12 and many libraries like poise aren't compatible yet, explicit depends on rspec

- Adds a unit test with chefspec matcher under `libraries/matchers.rb` for testing chef resources were created with correct data and actions

- Adds an `elasticsearch_test` kitchenCI suite that tests edge cases, so the default test suite can test the expected way people use the cookbook

- Tweak rubocop rules to avoid style complaints about methods that are too complex (controversial rule) and compact class styles (also controversial at the moment)

- Updated `README.md` with an example of how to use the `elasticsearch_user` resource
  • Loading branch information
martinb3 committed Jan 6, 2015
1 parent 3f5f962 commit d67badf
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,9 @@ group :lint do
end

group :unit do
gem 'rspec'
gem 'chef', '>= 11.16'
gem 'chefspec'
gem 'chef-sugar'
gem 'berkshelf', '~> 3'
gem 'chefspec', '>= 4.2'
gem 'chef-sugar'
end

group :kitchen_common do
Expand Down

0 comments on commit d67badf

Please sign in to comment.