Variable ‘…’: duplicate found. Variable names must be unique.
Starting with Terraform version 0.7.3 you can only define a variable once within a directory or a module. Before that release you could copy variable definition files from other modules and did not throw an error if you had the same variable defined in…
Launch Windows instances locally with Chef Test Kitchen
Most Linux distributions are free, and do not require product keys to launch them. The steps below are based on the great article at http://kitchen.ci/blog/test-kitchen-windows-test-flight-with-vagrant/ I have summarized the steps below to create a free…
How to migrate the DevOps development environment to another workstation
Git Move the Git repositories to a new workstation If you want to move Git repositories to your new workstation Commit and push all repositories to GitHub on the old workstation, Copy the folders from your old workstation to the new, Execute the…
DevOps Engineering part 1. (Mac) – Make your Macintosh easier to use
Enable the right-click To be able the right-click on the mouse Sounds Disable the startup sound To disable the sond during the computer start Enable notifications when external monitors are connected By default notifications are turned off during screen…
OLD- DevOps Engineering part 1. (Win) – Make your Windows computer easier to use
Set up your computer Display the file extensions On Windows 11 Open the File Explorer Click the arrow next to View and select Show Mark File name extensions and Hidden items On Windows 10 Open File Explorer On the View tab select File name extensions…
`block in filter_instances’: undefined method `empty?’ for nil:NilClass (NoMethodError)
When you try to execute any of the “kitchen” commands in Chef Test Kitchen you may get the following error message. lib/kitchen/config.rb:182:in `block in filter_instances': undefined method `empty?' for nil:NilClass (NoMethodError) This…
Serialize SSH and RSA private keys to store them in a Chef Data Bag
To send RSA private keys to instances, store them in encrypted data bags. The data bag item is a JSON file that contains keys and values inline. Use base64 encoding Base64 encoding converts binary data to ASCII format to represent special characters,…
HTTP Request Returned 409 Conflict: Client already exists
The Chef server maintains the list of registered nodes and clients in its database. When you launch a new instance with Chef you may encounter the following error message: *** Input CHEF_CLIENT_NODE_NAME is undefined, using: IP-0AFE6965 ... *** Starting…
How to edit the GitHub README.md file
The GitHub repositories usually contain a README.md file to describe how to use the project. The GitHub web site has a simple editor, but it has a few limitations If you accidentally refresh the page, you lose your changes, The preview pane is wider than…
How to rename a TeamCity agent
It is important to keep the TeamCity agent names unique. If you launch a TeamCity agent with a name that is already used by another agent that is connected to the TeamCity server, the new agent will not show up in the Unauthorized agent list. To change…