Skip to content

Instantly share code, notes, and snippets.

@tmatilai
Created March 5, 2014 21:28
Show Gist options
  • Save tmatilai/9376993 to your computer and use it in GitHub Desktop.
Save tmatilai/9376993 to your computer and use it in GitHub Desktop.
Running (Omnibus) Chef provisioner in a Vagrant VM which has RVM installed
Vagrant.configure("2") do |config|
# ...
config.vm.provision :chef_solo do |chef|
chef_gem_path = "/opt/chef/embedded/lib/ruby/gems/1.9.1"
chef.binary_env = "GEM_PATH=#{chef_gem_path} GEM_HOME=#{chef_gem_path}"
chef.binary_path = "/opt/chef/bin"
# ...
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment