Created
September 28, 2012 00:08
-
-
Save juanje/3797207 to your computer and use it in GitHub Desktop.
Some useful lines for my Vagrantfiles
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# To have the last stable version of Chef (10.14.4) | |
# with the official Vagrant boxes | |
config.vm.provision :shell, | |
:inline => "gem search -i chef -v 10.14.4 || gem install chef -v 10.14.4 --no-rdoc --no-ri" | |
# with the official Opscode boxes | |
config.vm.provision :shell, | |
:inline => "/opt/chef/embedded/bin/gem search -i chef -v 10.14.4 || /opt/chef/embedded/bin/gem install chef -v 10.14.4 --no-rdoc --no-ri" | |
# To have my favourite text editor installed inside the vagrant without add to the Chef recipes | |
config.vm.provision :shell, | |
:inline => "dpkg -l vim | grep -q '^ii vim' || ( sudo apt-get update && sudo apt-get install -y vim )" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I have those lines added before the
config.vm.provision :chef_solo do ...
orconfig.vm.provision :chef_client do ...
ones.