DevOps Engineering part 5. – Create an enterprise cookbook
In this exercise we will create a Chef cookbook for a corporation. It will be robust and include all the necessary elements to be used in a large enterprise. If your company already has established standards, as you progress with this tutorial, copy the…
Remove Policyfile.rb from your Chef cookbook
When you test your cookbook in Chef Test Kitchen and get the following error, delete the “Policyfile.rb” from your Chef cookbook directory. $$$$$$ You must set your run_list in your policyfile instead of kitchen config. The run_list your…
Unable to satisfy the following requirements error message in Chef Test Kitchen
When Berkshelf in the Chef Test Kitchen cannot resolve the cookbook dependencies, it displays the following error message during converge: Unable to satisfy the following requirements To help Berks to start a fresh calculation, delete the Berksfile.lock…
DevOps Engineering part 2. – Create and test your first cookbook in 5 minutes
In the first part of the series, Beginner’s Guide to DevOps Engineering Part 1. we have already installed the DevOps development tools. Create and test your first cookbook in 5 minutes Set up the Chef working folder Create a folder for the Chef…
SSL certificate is missing after installing ChefDK
When you install a new version of ChefDK and try to run Test Kitchen converge you may get the following error message >>>>>> ------Exception------- >>>>>> Class: Kitchen::ActionFailed >>>>>> Message:…
Winrm is missing after installing ChefDK
When you install the new version of ChefDK you may get the following error message when you try to run Test Kitchen !!!!!! The `winrm` gem is missing and must be installed or cannot be properly activated. Run `gem install winrm --version '["~> 1.6"]'`…
Berkshelf is missing after installing ChefDK
When you install a new version of ChefDK and try to run Test Kitchen the following error message may appear !!!!!! The `berkshelf' gem is missing and must be installed or cannot be properly activated. Run `gem install berkshelf` or add the following to…
EC2 driver is missing after installing ChefDK
After installing a new version of ChefDK you may get the following error message when you try to run Test Kitchen: Message: Could not load the 'ec2' driver from the load path. Please ensure that your driver is installed as a gem or included in your…
Error in Test Kitchen after installing ChefDK
You may get the following error when you try to run Test Kitchen after installing the latest version of ChefDK: $ kitchen C:/Ruby22/lib/ruby/2.2.0/rubygems/core_ext/kernel_require.rb:54:in `require': cannot load such file -- dl/import (LoadError) from…