diff --git a/CHANGELOG.md b/CHANGELOG.md index 0f8db0f3f..06c25358e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -10,6 +10,8 @@ IMPROVEMENTS: * builder/docker: Allow remote `DOCKER_HOST`, which works as long as volumes work. [GH-1594] * 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] * post-processors/vagrantcloud: Support self-hosted box URLs. diff --git a/builder/vmware/common/driver_config.go b/builder/vmware/common/driver_config.go index d1288cf4c..6c076b0b4 100644 --- a/builder/vmware/common/driver_config.go +++ b/builder/vmware/common/driver_config.go @@ -11,6 +11,9 @@ type DriverConfig struct { } func (c *DriverConfig) Prepare(t *packer.ConfigTemplate) []error { + if c.FusionAppPath == "" { + c.FusionAppPath = os.Getenv("FUSION_APP_PATH") + } if c.FusionAppPath == "" { c.FusionAppPath = "/Applications/VMware Fusion.app" }