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 compares the files and skips the download when the files […]

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 the type does not change as we create more attributes. In this example we change the […]

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 computer. See my article Install Windows 10 from […]

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 the kitchen.yml file. Standard Amazon AMI with random password When we use […]

Configure Epson WF-3520 scanning on Windows 10

Install the Epson WF-3520 scanner driver and scanning utility Download the Scanner Driver and EPSON Scan Utility v3.7.9.6 from the Utilities section of https://epson.com/Support/Printers/All-In-Ones/WorkForce-Series/Epson-WorkForce-WF-3520/s/SPT_C11CC33201 Double-click the downloaded file and install the application Connect to the Epson WF-3520 printer Start the EPSON Scan Settings utility Select Network and click the Add button When the search is […]

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 cookbook dependency diagram and open it in Preview In the Chef cookbook directory execute If you get […]