Commit fc5db260 authored by Mitchell Hashimoto's avatar Mitchell Hashimoto

builder/vmware: FUSION_APP_PATH to specify path [GH-1552]

parent 4d92bf82
...@@ -10,6 +10,8 @@ IMPROVEMENTS: ...@@ -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 { ...@@ -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"
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment