Skip to content

Instantly share code, notes, and snippets.

@advincze
Forked from mlafeldt/Vagrantfile
Created October 20, 2013 08:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save advincze/7066482 to your computer and use it in GitHub Desktop.
Save advincze/7066482 to your computer and use it in GitHub Desktop.
Vagrant.configure("2") do |config|
config.vm.box = "ubuntu-12.04"
config.vm.box_url = "http://cloud-images.ubuntu.com/vagrant/precise/current/precise-server-cloudimg-amd64-vagrant-disk1.box"
# Install Chef version 11
config.vm.provision :shell, :inline => <<EOS
set -e
if ! command -V chef-solo >/dev/null 2>/dev/null; then
curl -L https://www.opscode.com/chef/install.sh | bash -s -- -v 11.6.0
fi
EOS
config.vm.provision :chef_solo do |chef|
# ...
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment