Skip to content

Instantly share code, notes, and snippets.

@nelreina
Last active August 29, 2015 14:27
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 nelreina/4f3df8ba495d524736d2 to your computer and use it in GitHub Desktop.
Save nelreina/4f3df8ba495d524736d2 to your computer and use it in GitHub Desktop.
# -*- mode: ruby -*-
# vi: set ft=ruby :
Vagrant.configure(2) do |config|
config.vm.box = "ubuntu/trusty64"
config.vm.network "forwarded_port", guest: 3000, host: 3000
config.vm.network :private_network, ip: "10.11.12.13"
config.vm.provider "virtualbox" do |vb|
vb.memory = "1028"
end
config.vm.provision "chef_solo" do |chef|
chef.cookbooks_path = ["cookbooks", "~/.chef/cookbooks" ]
chef.add_recipe "nodejs::nodejs_from_binary"
chef.add_recipe "nodejs::npm_packages"
chef.add_recipe "git"
chef.add_recipe "timezone-ii"
chef.json = {
"tz" => "Europe/Amsterdam",
"nodejs" => {
"version" => "0.12.7" ,
"binary" => {
"checksum" => {
"linux_x64" => "6a2b3077f293d17e2a1e6dba0297f761c9e981c255a2c82f329d4173acf9b9d5"
}
},
"npm_packages" => [
{"name" => "forever"} ,
]
}
}
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment