Julien Pivotto

Syndicate content
Updated: 49 min 58 sec ago

Good practice about vagrant file

Tue, 2012-01-17 11:06

In the root directory of puppet trees, you could have a Vagrantfile. This is great, but a problem happens: when two people are working on the same tree, they will probably have their own vagrant files. That means that one of you do not commit his changes to the Vagrantfile, or you are managing multiple branches.

I have another idea: having multiple Vagrantfiles in the tree, named Vagrantfile.vm_name. Then, just add Vagrantfile to your .gitignore.

When you need to power up your specific Vagrant file, you just have to create a symbolic link like that:

$ ln -s Vagrantfile.roidelapluie Vagrantfile Easy and simple. If you want to go further you can create a "vagrantfiles" directory with all these Vagrantfiles.Tags: puppetvagrantgit
Categories: Planet Inuits