Skip to content

Instantly share code, notes, and snippets.

@kholloway
Created February 24, 2015 22:20
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 kholloway/dc09aa52a7f421297492 to your computer and use it in GitHub Desktop.
Save kholloway/dc09aa52a7f421297492 to your computer and use it in GitHub Desktop.
ChefSoloInstall-VagrantFile
# -*- mode: ruby -*-
# vi: set ft=ruby :
Vagrant.configure(2) do |config|
config.vm.box = "chef/centos-6.6"
# Bootstrap for the vim cookbook
# mkdir -p ~/vagrant_stuff/cheflab/cookbooks
# cd !$
# git clone git://github.com/opscode-cookbooks/vim.git
#
# Now put this Vagrantfile in ~/vagrant_stuff/cheflab/Vagrantfile
# and run 'vagrant up'
# You should end up with Chef installed on the VM (version latest) and VIM package installed via Yum in this case
# This should install chef omnibus packages
config.vm.provision "chef_solo" do |chef|
chef.version = "latest"
chef.cookbooks_path = ["cookbooks"]
# Make sure Vim is installed
chef.add_recipe "vim"
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment