Skip to content

Instantly share code, notes, and snippets.

@xeb
Last active July 12, 2016 00:32
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 xeb/243aecf03eaa59edf043e56a323a092f to your computer and use it in GitHub Desktop.
Save xeb/243aecf03eaa59edf043e56a323a092f to your computer and use it in GitHub Desktop.
Basic Vagrant file
# -*- mode: ruby -*-
# vi: set ft=ruby :
Vagrant.configure(2) do |config|
config.vm.box = "ubuntu/xenial64"
#config.vm.box = "bento/centos-7.2"
#config.vm.box_url = "https://atlas.hashicorp.com/bento/boxes/centos-7.2"
config.vm.network "forwarded_port", guest: 5000, host: 5000
config.vm.synced_folder "scripts", "/home/vagrant/scripts"
config.vm.provider "virtualbox" do |vb|
vb.name = "basic_dev"
vb.memory = "2048"
vb.cpus = 4
end
config.vm.provision "shell", path: 'scripts/provision.sh', privileged: false
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment