Skip to content

Instantly share code, notes, and snippets.

@howardroark
Last active August 29, 2015 14:18
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 howardroark/25550e799297fafb3b94 to your computer and use it in GitHub Desktop.
Save howardroark/25550e799297fafb3b94 to your computer and use it in GitHub Desktop.
# -*- mode: ruby -*-
# vi: set ft=ruby :
Vagrant.configure(2) do |config|
config.vm.box = "ubuntu1404"
config.vm.box_url = "https://cloud-images.ubuntu.com/vagrant/trusty/current/trusty-server-cloudimg-amd64-vagrant-disk1.box"
config.vm.provision :shell, inline: $install_nvmnode
end
$install_nvmnode = <<SCRIPT
apt-get install git -y
su - vagrant -c "curl https://raw.githubusercontent.com/creationix/nvm/v0.24.1/install.sh | bash"
su - vagrant -c "source ~/.nvm/nvm.sh; nvm install stable && nvm alias default stable && nvm use stable"
SCRIPT
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment