When you execute a Chef recipe that calls a custom resource and the execution stops without any output from the custom resource, make sure the custom resource does not reference a misspelled property with the #{PROPERTY_NAME} syntax.
Category Archives: Cloud computing
How can I tell if a Chef cookbook is frozen
If a Chef cookbook is “frozen”, the cookbook is protected against accidental overwrite. When someone tries to overwrite it the “Version … of cookbook COOKBOOK_NAME is frozen. Use –force to override” message appears. To check if a Chef cookbook is frozen on the Chef server execute the following command knife cookbook show COOKBOOK_NAME latest | grep …
Continue reading “How can I tell if a Chef cookbook is frozen”
Upgrade Chef Client on Windows
If you have already installed Chef Client on a Windows box and want to upgrade to the latest version Open a Command Prompt and run as Administrator, Execute the following command, choco upgrade chef-client After the upgrade close the Command Prompt and open a new one to get the latest environment variables.
REMOTE HOST IDENTIFICATION HAS CHANGED warning when you try to connect to a server with ssh
If you work in the AWS environment and launch and terminate servers frequently the same IP is reused many times. When you try to connect to a new server with SSH and the IP address is already in the known_hosts file you will get the following error message. @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @ WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED! …
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: Failed to complete #create action: [SSL_connect returned=1 errno=0 state=SSLv3 read server certificate B: certificate verify failed To solve the problem add the following to the Windows …
Continue reading “SSL certificate is missing after installing ChefDK”
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”]’` or add the following to your Gemfile if you are using …
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 your Gemfile if you are using Bundler: `gem ‘berkshelf’`. To reinstall …
Continue reading “Berkshelf is missing after installing ChefDK”
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 Gemfile if using Bundler. To install the EC2 driver …
Continue reading “EC2 driver is missing after installing ChefDK”
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 C:/Ruby22/lib/ruby/2.2.0/rubygems/core_ext/kernel_require.rb:54:in `require’ from C:/Ruby22/lib/ruby/gems/2.2.0/gems/net-ssh-2.9.2/lib/net/ssh/authentication/pageant.rb:1:in `<top (required)>’ from C:/Ruby22/lib/ruby/2.2.0/rubygems/core_ext/kernel_require.rb:54:in `require’ from C:/Ruby22/lib/ruby/2.2.0/rubygems/core_ext/kernel_require.rb:54:in `require’ from C:/Ruby22/lib/ruby/gems/2.2.0/gems/net-ssh-2.9.2/lib/net/ssh/authentication/agent/socket.rb:5:in `<top (required)>’ from C:/Ruby22/lib/ruby/2.2.0/rubygems/core_ext/kernel_require.rb:54:in `require’ from C:/Ruby22/lib/ruby/2.2.0/rubygems/core_ext/kernel_require.rb:54:in `require’ from …
Continue reading “Error in Test Kitchen after installing ChefDK”
DevOps interview questions
When you are interviewing candidates for a DevOps position this collection of resources can help to ask the right questions. Wide variety of questions on the broad spectrum of tasks needed for the DevOps work. https://github.com/spikenode/DevOps-Interview-Questions