Skip to content

Instantly share code, notes, and snippets.

@johnbender
Created March 25, 2010 21:15
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 johnbender/344131 to your computer and use it in GitHub Desktop.
Save johnbender/344131 to your computer and use it in GitHub Desktop.
Vagrant::Config.run do |config|
# All Vagrant configuration is done here. For a detailed explanation
# and listing of configuration options, please check the documentation
# online.
# Every Vagrant virtual environment requires a box to build off of.
config.vm.box = "base"
# Enable chef
config.vm.provisioner = :chef_solo
config.chef.cookbooks_path = 'cookbooks'
config.chef.run_list.clear
config.chef.add_recipe("vagrant_main")
config.chef.json.merge!({
:mysql => {
:server_root_password => "password"
}
})
end
Output:
$vagrant up
[INFO 03-25-2010 13:53:30] Vagrant: VM already created. Starting VM if its not already running...
[INFO 03-25-2010 13:53:30] Vagrant: Deleting any previously set forwarded ports...
[INFO 03-25-2010 13:53:30] Vagrant: Forwarding ports...
[INFO 03-25-2010 13:53:30] Vagrant: Forwarding "ssh": 22 => 2222
[INFO 03-25-2010 13:53:31] Vagrant: Clearing previously set shared folders...
[INFO 03-25-2010 13:53:31] Vagrant: Creating shared folders metadata...
[INFO 03-25-2010 13:53:32] Vagrant: Booting VM...
[INFO 03-25-2010 13:53:32] Vagrant: Waiting for VM to boot...
[INFO 03-25-2010 13:53:32] Vagrant: Trying to connect (attempt #1 of 10)...
[INFO 03-25-2010 13:53:37] Vagrant: Trying to connect (attempt #2 of 10)...
[INFO 03-25-2010 13:53:53] Vagrant: VM booted and ready for use!
[INFO 03-25-2010 13:53:53] Vagrant: Mounting shared folders...
[INFO 03-25-2010 13:53:53] Vagrant: -- vagrant-root: /vagrant
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment