Skip to content

Instantly share code, notes, and snippets.

@Afterglow
Last active August 29, 2015 14:13
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 Afterglow/e1cda6fbaf6cd4776e8a to your computer and use it in GitHub Desktop.
Save Afterglow/e1cda6fbaf6cd4776e8a to your computer and use it in GitHub Desktop.
Basic machine definition for Vagrant with chef-provisioning
require 'chef/provisioning'
require 'chef/provisioning/vagrant_driver'
with_driver 'vagrant'
vagrant_box 'ubuntu-14.04' do
url 'https://oss-binaries.phusionpassenger.com/vagrant/boxes/latest/ubuntu-14.04-amd64-vbox.box'
end
with_machine_options vagrant_options: {
'vm.box' => 'ubuntu-14.04'
}
machine 'provisiontest' do
run_list [
'recipe[apt]'
]
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment