portertech / chef-monitor

An OpsCode Chef cookbook for monitoring services, wrapping the Sensu cookbook.
http://community.opscode.com/cookbooks/monitor
84 stars 102 forks source link

Dependency on librarian-chef #35

Closed spuder closed 8 years ago

spuder commented 9 years ago

If you attempt to run test kitchen, it will throw the following error:

sowens-MBP:chef-monitor sowen$ kitchen create
-----> Starting Kitchen (v1.3.1)
!!!!!! The `librarian-chef' gem is missing and must be installed or cannot be properly activated. Run `gem install librarian-chef` or add the following to your Gemfile if you are using Bundler: `gem 'librarian-chef'`.
>>>>>> ------Exception-------
>>>>>> Class: Kitchen::UserError
>>>>>> Message: Could not load or activate Librarian-Chef (cannot load such file -- librarian/chef/environment)
>>>>>> ----------------------
>>>>>> Please see .kitchen/logs/kitchen.log for more details
>>>>>> Also try running `kitchen diagnose --all` for configuration

I suspect this has something to do with the chef-dk being installed. Even after installing librarian chef, I get the same error.

spuder commented 9 years ago

Figured it out, when using the chefdk, you need to run the following command.

(sudo) chef gem install librarian-chef