builder/vmware: FUSION_APP_PATH to specify path [GH-1552]
This commit is contained in:
parent
4d92bf82ed
commit
fc5db2604e
|
@ -10,6 +10,8 @@ IMPROVEMENTS:
|
||||||
* builder/docker: Allow remote `DOCKER_HOST`, which works as long as
|
* builder/docker: Allow remote `DOCKER_HOST`, which works as long as
|
||||||
volumes work. [GH-1594]
|
volumes work. [GH-1594]
|
||||||
* builder/qemu: Can set cache mode for main disk. [GH-1558]
|
* builder/qemu: Can set cache mode for main disk. [GH-1558]
|
||||||
|
* builder/vmware: Can specify path to Fusion installation with environmental
|
||||||
|
variable `FUSION_APP_PATH`. [GH-1552]
|
||||||
* builder/vmware/vmx: Source VMX can have a disk connected via SATA. [GH-1604]
|
* builder/vmware/vmx: Source VMX can have a disk connected via SATA. [GH-1604]
|
||||||
* post-processors/vagrantcloud: Support self-hosted box URLs.
|
* post-processors/vagrantcloud: Support self-hosted box URLs.
|
||||||
|
|
||||||
|
|
|
@ -11,6 +11,9 @@ type DriverConfig struct {
|
||||||
}
|
}
|
||||||
|
|
||||||
func (c *DriverConfig) Prepare(t *packer.ConfigTemplate) []error {
|
func (c *DriverConfig) Prepare(t *packer.ConfigTemplate) []error {
|
||||||
|
if c.FusionAppPath == "" {
|
||||||
|
c.FusionAppPath = os.Getenv("FUSION_APP_PATH")
|
||||||
|
}
|
||||||
if c.FusionAppPath == "" {
|
if c.FusionAppPath == "" {
|
||||||
c.FusionAppPath = "/Applications/VMware Fusion.app"
|
c.FusionAppPath = "/Applications/VMware Fusion.app"
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue