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

This commit is contained in:
Mitchell Hashimoto 2014-10-28 08:21:39 -07:00
parent 4d92bf82ed
commit fc5db2604e
2 changed files with 5 additions and 0 deletions

View File

@ -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.

View File

@ -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"
}