Manually specify location of .vagrant folder in Vagrantfile

Sergey Evstifeev

The folder where I have Vagrantfile is being auto-generated during the build, so it gets cleaned up, but I'd like to still be able to use the created machines. The easiest way would be to put .vagrant folder somewhere outside the auto-generated folder. Is this possible?

tmatilai

You have (at least) two options:

  1. Use VAGRANT_DOTFILE_PATH to set the the location where the project specific data is stored (defaults to .vagrant as you already know). Note that the path has to be project/Vagrantfile specific.

  2. cd to a directory where you want the .vagrant directory to be created, and use VAGRANT_VAGRANTFILE to specify the path to the generated Vagrantfile.

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

Location of vagrant and Vagrantfile within git repository

From Dev

VagrantFile execution on vagrant destroy

From Dev

Specify default provider in Vagrantfile

From Java

Demand a Vagrant plugin within the Vagrantfile?

From Dev

vagrant - Vagrantfile: sync multiple folders

From Dev

Is there anyway to ask the user to specify the application's folder location?

From Dev

Changing Vagrantfile causes "vagrant ssh" to prompt for a password?

From Dev

vagrant error:Vagrantfile already exists in this directory

From Dev

getting the vagrant command line arguments inside the Vagrantfile

From Dev

Is it possible to require certain Vagrant and VirtualBox versions in Vagrantfile?

From Dev

Vagrantfile inside the project repo, good Vagrant workflow?

From Dev

Vagrant: how to configure multiple NICs within a Vagrantfile?

From Dev

getting the vagrant command line arguments inside the Vagrantfile

From Dev

Vagrantfile inside the project repo, good Vagrant workflow?

From Dev

Is it possible to require certain Vagrant and VirtualBox versions in Vagrantfile?

From Dev

Vagrant: how to configure multiple NICs within a Vagrantfile?

From Dev

Specify --no-parallel flag inside Vagrantfile

From Dev

Specify order for query manually

From Dev

Vagrant synced folder permissions

From Dev

Vagrant unidirectional synced folder

From Dev

Access to log folder with Vagrant

From Dev

Access to log folder with Vagrant

From Java

How to specify the location with wget?

From Dev

Specify location of volumes in docker

From Dev

Manually specify AWS access key

From Dev

Vagrant: delete synced folder on host with `vagrant destroy`

From Dev

Specify folder in batch file

From Dev

How to manually trigger rsync using vagrant and vagrant-aws?

From Dev

How to manually trigger rsync using vagrant and vagrant-aws?

Related Related

  1. 1

    Location of vagrant and Vagrantfile within git repository

  2. 2

    VagrantFile execution on vagrant destroy

  3. 3

    Specify default provider in Vagrantfile

  4. 4

    Demand a Vagrant plugin within the Vagrantfile?

  5. 5

    vagrant - Vagrantfile: sync multiple folders

  6. 6

    Is there anyway to ask the user to specify the application's folder location?

  7. 7

    Changing Vagrantfile causes "vagrant ssh" to prompt for a password?

  8. 8

    vagrant error:Vagrantfile already exists in this directory

  9. 9

    getting the vagrant command line arguments inside the Vagrantfile

  10. 10

    Is it possible to require certain Vagrant and VirtualBox versions in Vagrantfile?

  11. 11

    Vagrantfile inside the project repo, good Vagrant workflow?

  12. 12

    Vagrant: how to configure multiple NICs within a Vagrantfile?

  13. 13

    getting the vagrant command line arguments inside the Vagrantfile

  14. 14

    Vagrantfile inside the project repo, good Vagrant workflow?

  15. 15

    Is it possible to require certain Vagrant and VirtualBox versions in Vagrantfile?

  16. 16

    Vagrant: how to configure multiple NICs within a Vagrantfile?

  17. 17

    Specify --no-parallel flag inside Vagrantfile

  18. 18

    Specify order for query manually

  19. 19

    Vagrant synced folder permissions

  20. 20

    Vagrant unidirectional synced folder

  21. 21

    Access to log folder with Vagrant

  22. 22

    Access to log folder with Vagrant

  23. 23

    How to specify the location with wget?

  24. 24

    Specify location of volumes in docker

  25. 25

    Manually specify AWS access key

  26. 26

    Vagrant: delete synced folder on host with `vagrant destroy`

  27. 27

    Specify folder in batch file

  28. 28

    How to manually trigger rsync using vagrant and vagrant-aws?

  29. 29

    How to manually trigger rsync using vagrant and vagrant-aws?

HotTag

Archive