Merge remote-tracking branch 'fork/master'

This commit is contained in:
Łukasz Kostka 2017-08-24 20:57:44 +02:00
commit bbaf15ef2e
4 changed files with 9 additions and 2 deletions

View File

@ -5,6 +5,10 @@
* provisioner/salt-masterless: Also use sudo to clean up if we used sudo to install. [GH-5240]
* builder/profitbricks: added support for Cloud API v4. [GH-5233]
### BUG FIXES:
* builder/vmware: Fix timestamp in default VMName. [GH-5274]
## 1.0.4 (August 11, 2017)

View File

@ -45,6 +45,7 @@ func (s *StepExport) Run(state multistep.StateBag) multistep.StepAction {
}
if c.RemoteType != "esx5" || s.Format == "" {
ui.Say("Skipping export of virtual machine (export is allowed only for ESXi and the format needs to be specified)...")
return multistep.ActionContinue
}

View File

@ -51,7 +51,8 @@ func NewConfig(raws ...interface{}) (*Config, []string, error) {
// Defaults
if c.VMName == "" {
c.VMName = fmt.Sprintf("packer-%s-{{timestamp}}", c.PackerBuildName)
c.VMName = fmt.Sprintf(
"packer-%s-%d", c.PackerBuildName, interpolate.InitTime.Unix())
}
// Prepare the errors

View File

@ -478,7 +478,8 @@ modify as well:
- `format` (string) - Either "ovf", "ova" or "vmx", this specifies the output
format of the exported virtual machine. This defaults to "ovf".
Before using this option, you need to install `ovftool`.
Before using this option, you need to install `ovftool`. This option
works currently only with option remote_type set to "esx5".
### VNC port discovery