Browse files

Make sure Chef is always installed, up-to-date and functional

  • Loading branch information...
1 parent 61ea3d9 commit 5a57f88009523fdf49f7236be3f51fe2a70048a5 @michaelklishin committed Nov 4, 2012
Showing with 6 additions and 0 deletions.
  1. +6 −0 Vagrantfile.sample
View
6 Vagrantfile.sample
@@ -27,6 +27,12 @@ Vagrant::Config.run do |config|
# see https://github.com/mitchellh/vagrant/issues/912
config.vm.customize ["modifyvm", :id, "--rtcuseutc", "on"]
+ config.vm.provision :shell do |sh|
+ sh.inline = <<-EOF
+ /opt/ruby/bin/gem install chef --no-ri --no-rdoc --no-user-install
+ EOF
+ end
+
config.vm.provision :chef_solo do |chef|
# this assumes you have travis-ci/travis-cookbooks cloned at ./cookbooks
chef.cookbooks_path = ["cookbooks/ci_environment"]

0 comments on commit 5a57f88

Please sign in to comment.