Using the vm_name parameter to name OVA/OVF files and their attachments

This commit is contained in:
Sean Mackrory 2013-09-06 19:08:06 -07:00
parent 48a53446bf
commit 2a04f49bca
2 changed files with 2 additions and 2 deletions

View File

@ -50,7 +50,7 @@ func (s *stepExport) Run(state multistep.StateBag) multistep.StepAction {
} }
// Export the VM to an OVF // Export the VM to an OVF
outputPath := filepath.Join(config.OutputDir, "packer."+config.Format) outputPath := filepath.Join(config.OutputDir, vmName+"."+config.Format)
command = []string{ command = []string{
"export", "export",

View File

@ -191,7 +191,7 @@ Optional:
By default this is ".vbox_version", which will generally upload it into By default this is ".vbox_version", which will generally upload it into
the home directory. the home directory.
* `vm_name` (string) - This is the name of the VMX file for the new virtual * `vm_name` (string) - This is the name of the OVF file for the new virtual
machine, without the file extension. By default this is "packer-BUILDNAME", machine, without the file extension. By default this is "packer-BUILDNAME",
where "BUILDNAME" is the name of the build. where "BUILDNAME" is the name of the build.