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 …

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 …

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 …

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 …

Extract data from JSON with Ruby

Chef uses Ruby as the scripting language. If you need to extract data out from a JSON string you can use the following script # Save the JSON values instance_data_drive_config = ‘{“size”:”500″,”type”:”io1″,”iops”:”15000″}’ # Parse the JSON to a hash data = JSON.parse(instance_data_drive_config) # Declare the variables size = ” type = ” iops = ” …

Error creating a Scheduled Task on Windows Server 2008 R2

When the “Run whether user is logged on or not”  option is selected in the General tab of the Create Task window the Task Scheduler has to save the password of the selected user. During the save the following error message appears: Task Scheduler An error has occurred for the task <task name>. Error message: …

How to create a mirrored volume in Windows Server 2008 R2?

To create a mirrored volume in Windows Server 2008 R2 In the Start Menu right click Computer, In the popup menu select Manage, On the left side of Server Manager expand Storage and select Disk Management, You need a second hard drive with as much unallocated space on it as the size of the volume …

IPv4 Network Subnet Prefixes, Masks, Usable Hosts

The following table shows the IPv4 network subnet prefixes, subnet masks, and the number of usable hosts. Prefix size Network mask Available subnets Usable hosts per subnet Total usable hosts /24 255.255.255.0 1 254 254 /25 255.255.255.128 2 126 252 /26 255.255.255.192 4 62 248 /27 255.255.255.224 8 30 240 /28 255.255.255.240 16 14 224 …