Created
April 6, 2014 23:55
-
-
Save cmbaughman/10012787 to your computer and use it in GitHub Desktop.
Preliminary Vagrant Notes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Top part is Vagrantfile, bottom is chef script.