DevOps Engineering part 3. – Working with AWS
Personalize your workstation Set up your account in the AWS console If you are not an AWS account administrator, ask your AWS account administrator to do the following for you Create an account in AWS Add the account to the appropriate user group…
List the installed Windows Features on the Windows server with PowerShell
When you set up a new Windows server and want to make sure all necessary Windows features are installed on it, you can list them in text format. If you want to replicate the configuration of an existing server, just list the features of both servers and…
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…
Chef Data Bags
Create an encrypted Chef data bag There are secrets in most of the Chef cookbooks that we want to protect. We don’t want to give out user names, passwords and AWS keys. In Chef the best place to hide these secrets is the Encrypted Data Bag. A Data…
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…
Beginner’s Guide to DevOps Engineering part 1.
DevOps engineering (Release engineering) is a relatively new profession. There is a very high demand for experienced DevOps engineers, because more and more large corporations want to migrate their data centers into the Cloud. In this series I will…
Enable file sharing on Windows servers in Amazon Web Services (AWS)
When you create an EC2 instance in Amazon Web Services (AWS) the security group (firewall) blocks all ports that are not explicitly opened. To make file sharing possible on Windows servers, open the following ports in the security group of the server:…
Chef script stops when it calls a custom resource
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.
How to copy files to the clipboard
When you work in the graphical user interface (GUI) of your operating system, and want to copy the contents of a file to the clipboard, you can use the following commands: On OS X run: cat FILE_NAME | pbcopy On Linux run: cat FILE_NAME | xclip On Windows…