From fc5db2604e814e78e44bed7ee20c621a73ec2885 Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Tue, 28 Oct 2014 08:21:39 -0700 Subject: [PATCH] builder/vmware: FUSION_APP_PATH to specify path [GH-1552] --- CHANGELOG.md | 2 ++ builder/vmware/common/driver_config.go | 3 +++ 2 files changed, 5 insertions(+) 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" }