Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

fix: broken custom vagrantfile support #368

Merged

Conversation

jamesla
Copy link
Contributor

@jamesla jamesla commented Oct 25, 2020

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
Copy link
Collaborator

legal90 commented Oct 27, 2020

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

@legal90
Copy link
Collaborator

legal90 commented Nov 25, 2020

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

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants