Skip to content

Instantly share code, notes, and snippets.

@cmbaughman
Created April 6, 2014 23:55
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 cmbaughman/10012787 to your computer and use it in GitHub Desktop.
Save cmbaughman/10012787 to your computer and use it in GitHub Desktop.
Preliminary Vagrant Notes
Vagrant::Config.run do |config|
config.vm. box = "precise64"
config.vm.box_url = "http://hashicorp-files.vagrantup.com/precise64.box"
config.vm.share_folder "v-root", "/anydir", "."
config.vm.forward_port 80, 8080
config.vm.provision "shell", path: "provision.sh"
#or chef config.vm.provision "chef_solo", run_list: ["candoris_chef"]
end
# the chef script
execute "apt-get update"
package "apache2"
execute "rm -rf /var/www"
link "/var/www" do
to "/vagrant"
end
@cmbaughman
Copy link
Author

Top part is Vagrantfile, bottom is chef script.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment