Skip to content

Instantly share code, notes, and snippets.

@neatshell
Last active August 29, 2015 13:57
Show Gist options
  • Save neatshell/9642886 to your computer and use it in GitHub Desktop.
Save neatshell/9642886 to your computer and use it in GitHub Desktop.
Vagrantfile that builds up a box with a MEAN stack on a centos64
# -*- mode: ruby -*-
# vi: set ft=ruby :
VAGRANTFILE_API_VERSION = "2"
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
config.vm.box = "centos64"
config.vm.box_url = "http://developer.nrel.gov/downloads/vagrant-boxes/CentOS-6.5-x86_64-v20140110.box"
config.vm.network :private_network, ip: "192.168.50.2"
config.ssh.forward_agent = true
config.vm.synced_folder "work", "/home/vagrant/work", type: "nfs"
config.vm.provider :virtualbox do |vb|
vb.gui = false
vb.customize ["modifyvm", :id, "--memory", "1024"]
end
# Provisioning Section
# - Shell customization
config.vm.provision :shell, :path => "https://gist.github.com/neatshell/9639286/raw"
# - Centos64 bootstrap
config.vm.provision :shell, :path => "https://gist.github.com/neatshell/9639431/raw"
# - MongoDB install
config.vm.provision :shell, :path => "https://gist.github.com/neatshell/9639218/raw"
# - Node.js install
config.vm.provision :shell, :privileged => false, :path => "https://gist.github.com/neatshell/9288283/raw"
# - mean setup
config.vm.provision :shell, :privileged => false, :path => "https://gist.github.com/neatshell/9785082/raw"
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment