Parallels / vagrant-parallels

Vagrant Parallels Provider
https://parallels.github.io/vagrant-parallels
MIT License
996 stars 87 forks source link

fix: broken custom vagrantfile support #368

Closed jamesla closed 4 years ago

jamesla commented 4 years ago

Currently vagrant package --vagrantfile myvagrantfile is broken.

It copies the custom vagrant to the box archive, however the custom vagrantfile includes/_Vagrantfile is never loaded by the actual vagrantfile ./vagrantfile

This PR adds the package_vagrantfile action (stolen from the virtualbox provider).

This means that the following template will be rendered:

https://github.com/hashicorp/vagrant/blob/6e670777aff01043b7c21e60dd2ce95b5e433806/templates/package_Vagrantfile.erb#L10

Causing the custom vagrantfile that is already copied to actually be referenced and to work.

legal90 commented 4 years ago

Verified. Works good. @jamesla Thank you very much for this fix! 👍

legal90 commented 3 years ago

This fix has been released in vagrant-parallels v2.1.0