Created
February 24, 2015 22:20
-
-
Save kholloway/dc09aa52a7f421297492 to your computer and use it in GitHub Desktop.
ChefSoloInstall-VagrantFile
This file contains 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
# -*- 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