From 1440a9fed71dcf71806ce7eb2dfb2cef1fdf98c5 Mon Sep 17 00:00:00 2001 From: Martin Smith Date: Wed, 31 Dec 2014 15:40:42 -0600 Subject: [PATCH] Introduce user provider and resource - 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 --- Gemfile | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/Gemfile b/Gemfile index eed56ad73..d30152b6c 100644 --- a/Gemfile +++ b/Gemfile @@ -6,11 +6,9 @@ group :lint do end group :unit do - gem 'rspec' - gem 'chef', '>= 11.16' + gem 'berkshelf', '~> 3' gem 'chefspec', '>= 4.2' gem 'chef-sugar' - gem 'berkshelf', '~> 3' end group :kitchen_common do