Skip to content

Instantly share code, notes, and snippets.

@brianfeucht
Created October 22, 2013 23:19
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 brianfeucht/7109876 to your computer and use it in GitHub Desktop.
Save brianfeucht/7109876 to your computer and use it in GitHub Desktop.
Basic Vagrant file to install ubuntu with ngnix installed
# -*- mode: ruby -*-
# vi: set ft=ruby :
# Vagrantfile API/syntax version. Don't touch unless you know what you're doing!
VAGRANTFILE_API_VERSION = "2"
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
config.vm.box = "precise64"
config.vm.box_url = "http://files.vagrantup.com/precise64.box"
config.vm.network :forwarded_port, guest: 80, host: 8523
config.vm.network :public_network
# Share an additional folder to the guest VM. The first argument is
# the path on the host to the actual folder. The second argument is
# the path on the guest to mount the folder. And the optional third
# argument is a set of non-required options.
# config.vm.synced_folder "../data", "/vagrant_data"
config.vm.provision "shell", path: "https://gist.github.com/brianfeucht/7109815/raw/859cd9a3ecc3ba01d59b9ea4b10f0c13fc4770a0/installNginx"
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment