Packer can configure a server instance and create an image of it. If you need to examine what Packer is doing, you can run Packer in debug mode and RDP into the instance to view files and other settings. Open the firewall In the “builders” element add a line to the Packer template to execute …
Author Archives: Laszlo Pinter
Install the binary component of LastPass
To be able to download attached files from LastPass, you need to install the binary component for LastPass in your web browser. Navigate to https://lastpass.com/misc_download2.php Install the LastPass for Chrome (full version) plugin
Create a new server image for a RightScale server template
The RightScale server templates publish server images to launch. It is advisable to create your own server image because the cloud providers can remove their published images anytime. If you generate your own image, you control the lifecycle of those. Create your own server image Use Packer to create a new server image. Install RightLink. On …
Continue reading “Create a new server image for a RightScale server template”
windows_task, ArgumentError: invalid date
When the windows_task resource is called to “create” a Windows Scheduled Task that already exists, an error message is returned. In the past, the “modify” action was responsible for the modification of the scheduled tasks, since Chef 13 the “create” action would update the task if exists. ArgumentError: …[…] (…:… line …) had an error: ArgumentError: …
Continue reading “windows_task, ArgumentError: invalid date”
Application error codes
When an application execution fails, it usually returns an error code to specify the cause of the problem. Windows error codes Application Error code Cause Workaround Visual Studio -2147205120 The computer has a pending restart and must be rebooted before the execution. Restart your computer, and then rerun the application.
.NET Framework Detection in the Windows Registry
To determine which .NET framework is installed on the Windows computer check the values in the registry. The HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\NET Framework Setup\NDP\v4\Full key contains two values you can check: Release Version You can use InSpec, part of the Chef DK, to check the values: describe registry_key(‘HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\NET Framework Setup\NDP\v4\Full’) do it { should have_property ‘Release’ } it { …
Continue reading “.NET Framework Detection in the Windows Registry”
Chef exit codes
Chef uses the standard RFC 062 exit codes. In your .kitchen.yml file, you can supply an array of exit codes in the “retry_on_exit_code” option to retry the operation in case the Chef script execution is interrupted. The usual values are retry_on_exit_code: # An array of exit codes that can indicate that kitchen should retry the converge …
FATAL: Chef::Exceptions::Reboot: Rebooting server at a recipe’s request.
When your Chef recipe requests a reboot using the “reboot” Chef resource, the output window shows an error message: Chef Client finished, …/… resources updated in … seconds […] WARN: Rebooting server at a recipe’s request. Details: {:delay_mins=>1, :reason=>”…”, :timestamp=>…, :requested_by=>”…”} Running handlers: […] ERROR: Running exception handlers Running handlers complete […] ERROR: Exception handlers complete Chef …
Continue reading “FATAL: Chef::Exceptions::Reboot: Rebooting server at a recipe’s request.”
Unable to satisfy constraints on package
When you make a change to the version restrictions in the metadata.rb file and execute berks install in your Chef cookbook directory, you may get the error message: Unable to satisfy constraints on package … due to solution constraint (…). Solution constraints that may result in a constraint on …: [(…)], [(…) -> (…)] Demand that …
amazon-ebs: Error waiting for SSH: ssh: handshake failed: ssh: unable to authenticate, attempted methods [none publickey], no supported methods remain
When you launch a Linux AWS EC2 instance with Terraform or create a Linux AWS image with Packer, one of the following errors are displayed: amazon-ebs: Error waiting for SSH: ssh: handshake failed: ssh: unable to authenticate, attempted methods [none publickey], no supported methods remain aws_instance.default: 1 error(s) occurred: * ssh: handshake failed: ssh: unable to …