Change default home directory

6,566 vistas
Ir al primer mensaje no leído

Marco De Bortoli

no leída,
17 mar 2011, 9:51:07 a.m.17/3/11
para Vagrant
Hi all,

I'm new to vagrant but already in love with it... and I started to
play with this amazing piece of awesomeness only yesterday.
As per subject I was wondering, since I didn't find any relavant
information around, if there a way to change the default home folder,
currently in my case located to ~/.vagrant/, to point somewhere else.

The main idea is to have a pool of boxes in a, let's say so, common
"local" location available to multiple users once downloaded, for
instance, from a remote location.

Is it clear enough what I'm trying to do? If not feel free to ask for
further information.

If it can be of any help, you probably want to know I'm running
vagrant on mac with a RVN managed ruby installation (v1.8.7 and v1.9.2
available) and the latest VirtualBox package.

Thanks in advance for the help.

Cheers,
Marco


Mitchell Hashimoto

no leída,
17 mar 2011, 2:49:23 p.m.17/3/11
para vagra...@googlegroups.com,Marco De Bortoli
Marco,

On Thu, Mar 17, 2011 at 6:51 AM, Marco De Bortoli
<marco.pk....@gmail.com> wrote:
> Hi all,
>
> I'm new to vagrant but already in love with it... and I started to
> play with this amazing piece of awesomeness only yesterday.
> As per subject I was wondering, since I didn't find any relavant
> information around, if there a way to change the default home folder,
> currently in my case located to ~/.vagrant/, to point somewhere else.

You can change the home directory by setting the VAGRANT_HOME
environmental variable to point to the directory you want to use. Note
that this has to be the full path (Vagrant doesn't append ".vagrant"
or anything to it) to where you want Vagrant to create files.

>
> The main idea is to have a pool of boxes in a, let's say so, common
> "local" location available to multiple users once downloaded, for
> instance, from a remote location.
>
> Is it clear enough what I'm trying to do? If not feel free to ask for
> further information.
>

This makes a lot of sense. In the work I've been doing for the next
version of Vagrant I've actually toyed with the idea of having
multiple Vagrant box download locations available (for example one in
/etc/vagrant, one in ~/.vagrant, etc.) so there could be both boxes
available to all users, and also local users.

Mitchell

Marco De Bortoli

no leída,
17 mar 2011, 3:10:21 p.m.17/3/11
para Vagrant
Hi Mitchell,

thank you so much for the fast reply.
That's exactly what I was looking for, it changes the home folder,
hence
it allows me to have a common place to store all the boxes I need/
want.

Thanks a lot, appreciated.
Marco


On Mar 17, 6:49 pm, Mitchell Hashimoto <mitchell.hashim...@gmail.com>
wrote:
> Marco,
>
> On Thu, Mar 17, 2011 at 6:51 AM, Marco De Bortoli
>
Responder a todos
Responder al autor
Reenviar
0 mensajes nuevos