From 5d465c2ff3180f0d264fc3e8f3c2d076627be87a Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Wed, 5 Jun 2013 14:47:19 -0700 Subject: [PATCH] builder/vmware: comments for stepCreateVMX --- builder/vmware/builder.go | 1 + builder/vmware/step_create_vmx.go | 8 ++++++++ 2 files changed, 9 insertions(+) diff --git a/builder/vmware/builder.go b/builder/vmware/builder.go index 5c4286a5c..c551f980e 100644 --- a/builder/vmware/builder.go +++ b/builder/vmware/builder.go @@ -19,6 +19,7 @@ type config struct { VMName string `mapstructure:"vm_name"` OutputDir string `mapstructure:"output_directory"` HTTPDir string `mapstructure:"http_directory"` + BootCommand []string `mapstructure:"boot_command"` } func (b *Builder) Prepare(raw interface{}) (err error) { diff --git a/builder/vmware/step_create_vmx.go b/builder/vmware/step_create_vmx.go index f4cb07ce0..eec05707d 100644 --- a/builder/vmware/step_create_vmx.go +++ b/builder/vmware/step_create_vmx.go @@ -17,6 +17,14 @@ type vmxTemplateData struct { VNCPort uint } +// This step creates the VMX file for the VM. +// +// Uses: +// config *config +// ui packer.Ui +// +// Produces: +// vnc_port uint - The port the VM is configured to listen on for VNC. type stepCreateVMX struct{} func (stepCreateVMX) Run(state map[string]interface{}) multistep.StepAction {