builder/vmware: comments for stepCreateVMX

This commit is contained in:
Mitchell Hashimoto 2013-06-05 14:47:19 -07:00
parent eb8278b21c
commit 5d465c2ff3
2 changed files with 9 additions and 0 deletions

View File

@ -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) {

View File

@ -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 {