ImageTemplateRestartCustomizerResponse

data class ImageTemplateRestartCustomizerResponse(val name: String? = null, val restartCheckCommand: String? = null, val restartCommand: String? = null, val restartTimeout: String? = null, val type: String)

Reboots a VM and waits for it to come back online (Windows). Corresponds to Packer windows-restart provisioner

Constructors

Link copied to clipboard
constructor(name: String? = null, restartCheckCommand: String? = null, restartCommand: String? = null, restartTimeout: String? = null, type: String)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
val name: String? = null

Friendly Name to provide context on what this customization step does

Link copied to clipboard

Command to check if restart succeeded Default: ''

Link copied to clipboard
val restartCommand: String? = null

Command to execute the restart Default: 'shutdown /r /f /t 0 /c "packer restart"'

Link copied to clipboard
val restartTimeout: String? = null

Restart timeout specified as a string of magnitude and unit, e.g. '5m' (5 minutes) or '2h' (2 hours) Default: '5m'

Link copied to clipboard

The type of customization tool you want to use on the Image. For example, "Shell" can be shell customizer Expected value is 'WindowsRestart'.