Test Chef cookbooks with Docker containers
Kitchen Dokken is a provisioner to test cookbooks in Docker containers. It is very fast and efficient compared to cloud instances like AWS EC2s, Vagrant boxes, or VMWare virtual machines. Currently, you can only test Linux cookbooks with Kitchen Dokken.…
Is the Chef aws_s3_file resource idempotent?
Yes, it is idempotent. It means, when the target file on the local drive matches the source file in the S3 bucket, Chef Client does not download the file. In the past aws_s3_file was not idempotent, but now behind the scenes it calls remote_file which…
Chef FATAL: IndexError: string not matched
Chef attributes are “Mash” type. From the Ruby Doc: “Mash allows you to create pseudo-objects that have method-like accessors for hash keys.” Mash is inherited from Hash. Attributes can hold any data type, but we need to make sure…
aws: command not found
When we want to execute AWS CLI commands to create tags, add AWS keys on AWS instances with the AWS Chef cookbook, first, we need to install the AWS CLI. On Linux the following lines complete the installation Make sure you use the -b /usr/bin option to…
Change or reset the user password if you cannot logon
I have found an interesting article by Raymond on how to reset the password of your Windows computer even if you cannot log in. Change Or Reset User Password If You Cannot Logon For the last method, you will need a bootable USB drive to start your…
Speed up your Windows computer
Windows executes an application every day to check the compatibility of the programs on your computer. Microsoft Compatibility Appraiser runs randomly between 3 am and 5 am in the morning, and in the first 2 hours when you turn on your computer. It can…
Failed to complete #converge action: [password is a required option]
The Chef Test Kitchen EC2 driver can connect to Windows instances two ways. Using a custom image with known admin account credentials When we use a custom built image which has a local administrator account with known username and password, specify it in…
Search the Chef server
Use the knife search command to list nodes that match the provided criteria Find nodes with a specific cookbook in the run list (runlist) Find nodes with a specific recipe in the run list (runlist) List nodes with a specific OS All Linux nodes All nodes…
Configure Epson WF-3520 scanning on Windows 11
Install the Epson WF-3520 scanner driver and scanning utility Connect to the Epson WF-3520 scanner To enable the Preview function In Windows 11 the Preview button is not visible by default. To make the Preview button visible on the Epson Scan page, we…
Generate the Chef cookbook dependency diagram
The Brew viz command reads the Berksfile.lock in the current Chef cookbook directory and saves the cookbook dependency diagram in the graph.png file. The command requires the graphviz utility Install graphviz In the terminal window execute Generate the…